RE: [PHP] something like __URL__ (analogous to __FILE__)

From: Date: Wed, 24 Mar 2004 01:15:35 +0000
Subject: RE: [PHP] something like __URL__ (analogous to __FILE__)
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-181343@lists.php.net to get a copy of this message
> -----Original Message----- > From: Chris W. Parker [mailto:cparker@swatgear.com] > Sent: Tuesday, March 23, 2004 5:03 PM > To: Evan Nemerson; motorpsychkill; Php General List > Subject: RE: [PHP] something like __URL__ (analogous to __FILE__) > > > Evan Nemerson <mailto:evan@coeus-group.com> > on Tuesday, March 23, 2004 5:00 PM said: > > > Take a look at $_SERVER['REQUEST_URI'] > > the problem with that is that the value REQUEST_URI will contain is that > of the page in the address bar (i think) and not the location of an > included file (which is what i took the op to want). > > for example, config.php is likely not a file someone access directly, > yet the op still wants that files URI. > > > chris. You've interpreted my question correctly Chris, thanks for the suggestion. -m

« previous php.general (#181343) next »