RE: [PHP-WIN] PHP not returning variables!
| From: | Jay Blanchard | Date: | Thu, 01 Dec 2005 17:10:48 +0000 |
| Subject: | RE: [PHP-WIN] PHP not returning variables! | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-26560@lists.php.net to get a copy of this message | ||
[snip]
But on the new server it doesnt, it produces a blank page. The following
however, does work.
<?
echo $_GET['var'];
?>
Any idea why there acting differently?
[/snip]
Yep, because register_globals (in the php.ini--if you change it make sure to
restart your web server so that ther settings take effect) is 'off' in the
new server. This is the recommended practice. As I understand it there will
ot even be a register_globals setting in PHP6.