note 44384 deleted from function.version-compare by tomsommer
| From: | tomsommer@php.net | Date: | Wed, 04 Aug 2004 13:42:30 +0000 |
| Subject: | note 44384 deleted from function.version-compare by tomsommer | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-73924@lists.php.net to get a copy of this message | ||
Note Submitter: llcooldanny[-AT-]gmx[-DOT-]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://www.programming-time.de | http://www.dragon-scripts.de)