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
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
$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
3 matches
Mail list logo