note 21065 deleted from configuration by philip
| From: | philip@php.net | Date: | Tue, 09 Jul 2002 00:25:37 +0000 |
| Subject: | note 21065 deleted from configuration by philip | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-32766@lists.php.net to get a copy of this message | ||
Hello,
here is an example how to get old scripts compatible with the new release.
// Compatibility patch for < PHP 4.2
if (function_exists ("import_request_variables"))
{
import_request_variables ("CGP","");
$HTTP_GET_VARS = $_GET;
$HTTP_POST_VARS = $_POST;
$HTTP_COOKIE_VARS = $_COOKIE;
$QUERY_STRING = $_SERVER["QUERY_STRING"];
$PHP_SELF = $_SERVER["PHP_SELF"];
$SERVER_NAME = $_SERVER["SERVER_NAME"];
$REMOTE_ADDR = $_SERVER["REMOTE_ADDR"];
$HTTP_X_FORWARDED_FOR = $_SERVER["HTTP_X_FORWARDED_FOR"];
$HTTP_VIA = $_SERVER["HTTP_VIA"];
}
You may add or delete some of the vars above.