RE: [PHP] something like __URL__ (analogous to __FILE__)
| From: | Chris W. Parker | Date: | Wed, 24 Mar 2004 01:03:10 +0000 |
| Subject: | RE: [PHP] something like __URL__ (analogous to __FILE__) | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-181342@lists.php.net to get a copy of this message | ||
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.