[PHP] $PHP_SELF name space?

2001-06-24 Thread Kent Sandvik
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

Re: [PHP] $PHP_SELF name space?

2001-06-24 Thread David Robley
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 $P

RE: [PHP] $PHP_SELF name space?

2001-06-24 Thread Jason Lustig
$PHP_SELF is a global variable. You're trying to call it from inside a function, which won't work unless you declare it as global to the function (unless you have some thing in the php.ini file set that I don't remember off the top of my head what it's called which will make all that stuff global