Page 1 of 1

Probably a really easy question...

Posted: Wed May 29, 2002 7:25 pm
by hob_goblin
I just installed PHP on my com, while preparing my new layout i got this error

Notice: Undefined variable: PHP_SELF in f:\apache\htdocs\index.php on line 68

hmm, do I have to turn the predefined variables on? is it only a unix thing?

sorry, im used to just uploading files onto my server and editing them there..

Posted: Wed May 29, 2002 9:00 pm
by mykg4orce
remember jason told us that

Code: Select all

<?php
register_globals=Off by default from 4.2.0
?>
so...that explains it....

Posted: Wed May 29, 2002 9:01 pm
by mykg4orce
ok so then do this:

do a find for "$PHP_SELF" and replace with the following:

Code: Select all

<?php
$_SERVERї'PHP_SELF']
?>

Posted: Wed May 29, 2002 9:15 pm
by hob_goblin
wow, i feel really stupid, i had no idea php_self had anything to do with the registering globals..