|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2002-04-16 07:17 UTC] heyjohnlim at yahoo dot com
Shouldn't we change the default tutorial at the url below so that it works with both PHP 4.0.x and 4.1.x? http://www.php.net/tut.php Bye, John PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 19 11:00:01 2025 UTC |
and just a few comments: a) $HTTP_USER_AGENT may work in any php version, it's just that as of 4.2.0 register_globals directive defaults to off, so it's not created automagically that way. b) One can always extract() SERVER vars in such cases, something like: if (!ini_get('register_globals')) { extract($HTTP_SERVER_VARS); } c) Yes it's agreed, the docs will and are being updated to not assume the above or register_globals = on.