HTTP_ACCEPT_LANGUAGE
Moritz Bunkus <[email protected]> Sat, 14 Feb 2004 11:19:06 +0100
| Newsgroups | gmane.comp.bug-tracking.anthill.devel |
|---|---|
| Message-ID | <[email protected]> |
--===============46836444799019539== Content-Disposition: inline Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="7cm2iqirTL37Ot+N" --7cm2iqirTL37Ot+N Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 --=20 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 --7cm2iqirTL37Ot+N Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (GNU/Linux) iD8DBQFALfYaTJ9OsraNuaERAq+lAJ9HY6UB2vc/UdVsTjrqSFJKwP1LfACfZ4U5 vv3wLdrraWnVklezJcm8VNc= =z6R9 -----END PGP SIGNATURE----- --7cm2iqirTL37Ot+N-- --===============46836444799019539== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Anthill-workers mailing list Anthill-workers-+mQDA36h6dWw5LPnMra/[email protected] http://vmlinuz.ca/mailman/listinfo/anthill-workers --===============46836444799019539==--