Re: referencing a constant inside an object

From: Date: Mon, 12 Feb 2001 21:29:39 +0000
Subject: Re: referencing a constant inside an object
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-52589@lists.php.net to get a copy of this message
The other poster was correct in their reply, but a more fitting reply is that $PHP_SELF is NOT a "constant". A constant would be something like... define(PHP_SELF,"cow"); All PHP code would then show PHP_SELF as "cow". cw wrote: > I'm trying to reference $PHP_SELF and $REMOTE_USER inside a class: > > var $page; > var $user; > $this->page=$PHP_SELF; > $this->user=$REMOTE_USER; > > I'm using php4. What am I missing here?

« previous php.general (#52589) next »