Forum Moderators: coopster
Notice: Undefined index: HTTP_CLIENT_IP
and a bunch of similar errors - including the three GET variables I use on a "main.php" to decide which page to display.
I can make the errors go away by playing with error_reporting in php.ini, but that does't help - when I navigate to main.php?var1=x&var2=y&var3=z, var1 etc remain undefined.
PHP 5
on IIS7
on Vista 64
The site works fine on
a) my old PHP 4 development set-up
b) live server on PHP 5
Possibly relevent entries in php.ini:
variables_order = "EGPCS"
register_globals = Off
register_long_arrays = On
register_argc_argv = On
auto_globals_jit = Off
Any ideas?
Besides, turning it on makes no difference. Not that it should. The code I'm using to GET the variables is:
$section = $_GET['section'];
$chapter = $_GET['chapter'];
$page = $_GET['page'];
By the way, I just changed a number of the above php.ini settings to come into line with the live server, but none of them make any difference.