http://ie.php.net/globals

Instead of $PHP_SELF use $_SERVER['PHP_SELF']

Craig


"Red Wingate" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> [EMAIL PROTECTED] wrote:
>
> > Hi
> >
> > $thisFileName = $PHP_SELF; works in a file just a few lines after the
> > program start.
> >
> > $thisFileName = $PHP_SELF; doesn't work (echo ("<p>Debug: self:
> > $PHP_SELF</p>"); returns <p>Debug: self: </p>) if it's within function
> > getNavigation() in the Navigation object called by another program.
> >
> You better check the docs on 'global' and $GLOBALS :-)
>
> -- red
>
> > Why?
> >
> > The Navigation object is called like this:
> > include ("Navigation.php4");
> > $myNavigation = new Navigation ("a", "b");
> > $myNavigation->getNavigation();
> >
> > I guess I'm asking $PHP_SELF something confusing. Does it respond
> > "index.php4" which is where the above three lines reside, or
> > Navigation.php4 which is where the actual $PHP_SELF resides.
> >
> > All help appreciated :-)
> >
> > Cheers
> > J

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to