note 44384 added to function.version-compare
| From: | llcooldanny at rn2 dot php dot net | Date: | Wed, 04 Aug 2004 13:40:49 +0000 |
| Subject: | note 44384 added to function.version-compare | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-73923@lists.php.net to get a copy of this message | ||
Hi.
If want to be sure, that $_GET, $_POST... works in every PHP Version you should check out this
snippet:
<?php
if(version_compare(phpversion(), '4.1.0') == -1) {
$_POST = &$HTTP_POST_VARS;
$_GET = &$HTTP_GET_VARS;
$_COOKIE = &$HTTP_COOKIE_VARS;
$_REQUEST = array_merge($HTTP_COOKIE_VARS, $HTTP_POST_VARS, $HTTP_GET_VARS);
}
?>
Now, all the Superglobal variables are in every PHP-Version
Have fun, LLCoolDannY (http://www.llcooldanny.de | http://www.programming-time.de | http://www.dragon-scripts.de)
----
Manual Page -- http://www.php.net/manual/en/function.version-compare.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+44384
Delete -- http://master.php.net/manage/user-notes.php?action=delete+44384&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+44384&report=yes
Search -- http://master.php.net/manage/user-notes.php