I had the same problem. For me, the solution was adding 'global $PHP_SELF' at the beginning of the file and it suddenly started working.
Anthony ----- Original Message ----- From: "Luís Sousa" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, September 18, 2003 12:22 PM Subject: RE: [PHP-WIN] Problem with $PHP_SELF and possibly some others > yeah, i can also run scripts, i stopped testing when that funtion didnt work > tho so i dunno if i cant do any more funtions > > > >From: "John Ellingsworth" <[EMAIL PROTECTED]> > >Reply-To: <[EMAIL PROTECTED]> > >To: Luís Sousa <[EMAIL PROTECTED]> > >Subject: RE: [PHP-WIN] Problem with $PHP_SELF and possibly some others > >Date: Thu, 18 Sep 2003 15:08:24 -0400 > > > >Can you view a plain-jane html page in the same directory? > > > >Thanks, > > > >John Ellingsworth > >http://mail.med.upenn.edu/~jellings/ > > > > > > > > > >-----Original Message----- > >From: Luís Sousa [mailto:[EMAIL PROTECTED] > >Sent: Thursday, September 18, 2003 3:01 PM > >To: [EMAIL PROTECTED] > >Subject: [PHP-WIN] Problem with $PHP_SELF and possibly some others > > > > > >i just recently installed apache2 on my computer and then php4.3.3, so i > >could test my scripts (im learnin) and I think im missing something > >configuring php, i was trying out my scripts and this message came up: > > > >Forbidden > >You don't have permission to access /<br /><b>Notice</b>: Undefined > >variable: PHP_self in <b>C:/site/assignement5advanced.php</b> on line > ><b>26</b><br /> on this server. > > > >i cant find anything related to php_self funtion on the php.net site, or at > >least the search engine cant :P, someone has a clue on what it could be? > > > >_________________________________________________________________ > >MSN Hotmail, o maior webmail do Brasil. http://www.hotmail.com > > > >-- > >PHP Windows Mailing List (http://www.php.net/) > >To unsubscribe, visit: http://www.php.net/unsub.php > > > > _________________________________________________________________ > MSN Messenger: converse com os seus amigos online. > http://messenger.msn.com.br > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php