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 c
global $PHP_SELF;
global $REMOTE_USER;
- Original Message -
From: "cw" <[EMAIL PROTECTED]>
To: "Php-General" <[EMAIL PROTECTED]>
Sent: Saturday, May 12, 2001 11:28 AM
Subject: [PHP] referencing a constant inside an object
> I'm trying to refer
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?
TIA,
clif
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For addition
3 matches
Mail list logo