function sendHttpErrorMsg($errno) {
global ${"http_".$errno."_title"};
global ${"http_".$errno."_msg"};
...
}
, damit die Funktion für jede Zahl verwendbar ist. Das funktioniert aber leider nicht, da bekomme ich einen Parse Error:
Parse error: parse error, expecting
STRING' or
'$'' in functions.inc on line 56
Würde sagen, das ist eine Aufgabe für eval().
Versuch mal sowas wie
eval ('global ${"http_' . $errno . '_title");');