note 45759 deleted from function.version-compare by nlopess
| From: | nlopess@php.net | Date: | Fri, 17 Sep 2004 15:05:47 +0000 |
| Subject: | note 45759 deleted from function.version-compare by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-76883@lists.php.net to get a copy of this message | ||
Note Submitter: llcooldanny [aet] gmx [doet] de
----
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://source-builder.com | http://www.dragon-scripts.de)