__FILE__

From: Date: Wed, 18 Oct 2000 02:00:10 +0000
Subject: __FILE__
Groups: php.qa 
Request: Send a blank email to php-qa+get-1530@lists.php.net to get a copy of this message
It seems like you get the full path and filename when you use the __FILE__ constant in the script that is called. But only the filename (no path) when you use it in an included file. Has anyone else noticed this? Ie. is this the 'expected' behavior? BTW: This is with PHP Version 4.0.1pl2 on Linux. -Tobias-

« previous php.qa (#1530) next »