RE: [PHP] Finding out the local path to a file.
| From: | Chris W. Parker | Date: | Tue, 24 Feb 2004 00:39:57 +0000 |
| Subject: | RE: [PHP] Finding out the local path to a file. | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-178619@lists.php.net to get a copy of this message | ||
Evan Nemerson <mailto:evan@coeus-group.com>
on Monday, February 23, 2004 4:33 PM said:
> dirname($_SERVER['SCRIPT_FILENAME'])?
__FILE__ will also do it.
<?php
echo __FILE__;
?>
chris.