Click to See Complete Forum and Search --> : using Environmental Variables


pyro
02-28-2003, 07:05 PM
Hi.

I just installed abyss web server and php and was wondering if there is a setting in php.ini that I need to set in order to use enviorenment variables in my script. For instance, this:

<?PHP
echo $REMOTE_ADDR;
?>

Throws out this error:

Notice: Undefined variable: REMOTE_ADDR in C:\Documents and Settings\Ryan Brill.RYAN\My Documents\My Webs\infinity\test.php on line 2

Any idea how I go about fixing this? It is running as a localhost server, for testing purposes...

pyro
03-01-2003, 12:54 PM
umm...I fail to see how that helps me with my problem _at_all_ :( Maybe someone else can help?