$SCRIPT_FILENAME
| From: | Bård Farstad | Date: | Thu, 07 Sep 2000 13:44:11 +0000 |
| Subject: | $SCRIPT_FILENAME | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-15706@lists.php.net to get a copy of this message | ||
Hi all,
I want to get the full path of a script which I have included. I use this in
a class and would like for it to know it's full path.
is this possible?
eg:
file1.php
<?
include( "/some/path/file2.php");
?>
file2.php
<?
print( "file2.php is located at: " . $MY_FULL_PATH );
?>
--bård