note 21065 added to configuration
| From: | 04u at gmx dot net | Date: | Sat, 27 Apr 2002 07:40:36 +0000 |
| Subject: | note 21065 added to configuration | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-29907@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.
--
http://www.php.net/manual/en/configuration.php
http://master.php.net/manage/user-notes.php?action=edit+21065
http://master.php.net/manage/user-notes.php?action=delete+21065
http://master.php.net/manage/user-notes.php?action=reject+21065