Thnx for hte help, I wanted to keep register globals off, its a security
hazard.
"Philip Olson" <[EMAIL PROTECTED]> wrote in message
Pine.BSF.4.10.10207140050140.63499-100000@localhost">news:Pine.BSF.4.10.10207140050140.63499-100000@localhost...
>
> You have many options.  Do a call to phpinfo() and
> note all the predefined variables, such as PHP_SELF.
> There is also the __FILE__ constant, print that too.
>
> Why do you request a function?  If it's because
> $PHP_SELF is not set, that's because the PHP
> directive register_globals = off.  Go through the
> predefined server array instead, it's sexier:
>
>   print $_SERVER['PHP_SELF'];
>
> See also:
>   http://www.php.net/manual/en/reserved.variables.php
>
> Regards,
> Philip Olson
>
>
> On Sat, 13 Jul 2002, David Duong wrote:
>
> > Is their a function that returns an equivalent of $PHP_SELF?
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>



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

Reply via email to