Forum
php global variables??
Hi im new to php and having problems with a script i am writing.
i have this line of code
$SERVER["PHP_SELF"];
however when i run the script i am getting this error:
Notice: Undefined variable: SERVER in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\manage.php on line 7
i have tried setting the register_globals to On in php.ini and various other things but cant seem to get this to work, do i need to edit anything in the Apache Server settings, really getting me frustrated! :mad2
i have this line of code
$SERVER["PHP_SELF"];
however when i run the script i am getting this error:
Notice: Undefined variable: SERVER in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\manage.php on line 7
i have tried setting the register_globals to On in php.ini and various other things but cant seem to get this to work, do i need to edit anything in the Apache Server settings, really getting me frustrated! :mad2
- how retarded of me! sorry to waste your time
its $_SERVER and not $SERVER!!
cant believe this, im such a duggy! lol... maybe i should keep off the bottle!!