php-general | 2001062

Re: [PHP] $PHP_SELF name space? From: David Robley (huntsman <email protected>)
Date: 06/24/01

On Mon, 25 Jun 2001 13:08, Kent Sandvik wrote:
> Hi, is there something silly I'm doing (latest PHP 4.0.5), when this
> does not work at all:
> ---
> class xCrumbs
> {
> function Render(){
> echo $PHP_SELF;
> }
> }
> $crumbs = new xCrumbs();
> $crumbs->Render();
>
>
> while
> echo $PHP_SELF;
>
> works just fine? Or something with name spaces and when $PHP_SELF is
> activated?
>
> Thx, Kent

I think you need to declare $PHP_SELF global when referring to it in a
function...

-- 
David Robley      Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES      Flinders University, SOUTH AUSTRALIA  

This tagl ineh asto oman yfou rlet terw ords.

-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>