Probably a really easy question...

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
hob_goblin
Forum Regular
Posts: 978
Joined: Sun Apr 28, 2002 9:53 pm
Contact:

Probably a really easy question...

Post 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..
mykg4orce
Forum Newbie
Posts: 21
Joined: Tue May 28, 2002 2:19 pm

Post by mykg4orce »

remember jason told us that

Code: Select all

<?php
register_globals=Off by default from 4.2.0
?>
so...that explains it....
mykg4orce
Forum Newbie
Posts: 21
Joined: Tue May 28, 2002 2:19 pm

Post 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']
?>
User avatar
hob_goblin
Forum Regular
Posts: 978
Joined: Sun Apr 28, 2002 9:53 pm
Contact:

Post by hob_goblin »

wow, i feel really stupid, i had no idea php_self had anything to do with the registering globals..
Post Reply