Moritz Bunkus
2004-02-14 10:19:06 UTC
Heya,
just installed 0.3.0 ;) Works fine so far.
Anyway, a problem that occured last time as well resurfaced when I
copied over the new files. In site.inc.php you check for the language:
if ($_SERVER['HTTP_ACCEPT_LANGUAGE'])
etc. Unfortunately this will print a warning in my case in the browser:
Notice: Undefined index: HTTP_ACCEPT_LANGUAGE in
/home/www/bunkus.org/html/anthill/include/site.inc.php on line 76
Is there a way in PHP to test if a hash actually contains a specific
key? If yes this warning can be avoided easily by testing for its
existance and anding that with the test if it actually has a useful
value.
Note: I'm still using Apache 2 with PHP4 as a cgi-bin executable.
Mosu
just installed 0.3.0 ;) Works fine so far.
Anyway, a problem that occured last time as well resurfaced when I
copied over the new files. In site.inc.php you check for the language:
if ($_SERVER['HTTP_ACCEPT_LANGUAGE'])
etc. Unfortunately this will print a warning in my case in the browser:
Notice: Undefined index: HTTP_ACCEPT_LANGUAGE in
/home/www/bunkus.org/html/anthill/include/site.inc.php on line 76
Is there a way in PHP to test if a hash actually contains a specific
key? If yes this warning can be avoided easily by testing for its
existance and anding that with the test if it actually has a useful
value.
Note: I'm still using Apache 2 with PHP4 as a cgi-bin executable.
Mosu
--
If Darl McBride was in charge, he'd probably make marriage
unconstitutional too, since clearly it de-emphasizes the commercial
nature of normal human interaction, and probably is a major impediment
to the commercial growth of prostitution. - Linus Torvalds
If Darl McBride was in charge, he'd probably make marriage
unconstitutional too, since clearly it de-emphasizes the commercial
nature of normal human interaction, and probably is a major impediment
to the commercial growth of prostitution. - Linus Torvalds