Re: __FILE__ constant

From: Date: Fri, 04 May 2001 20:28:56 +0000
Subject: Re: __FILE__ constant
References: 1 2  Groups: php.dev 
Request: Send a blank email to php-dev+get-53958@lists.php.net to get a copy of this message
Quoting Sebastian Bergmann <sb@sebastian-bergmann.de>: > <?php echo __FILE__; ?> works fine here. Or do you meant something > else, Chuck? The value is set; it's just missing all path delimiters. So if the file is actually /var/www/foo/bar.php, echo __FILE__ gives me "varwwwfooobar.php". Which means that dirname(__FILE__) returns incorrect results. -chuck -- "My intuitive grasp of math often leads me astray." -me

« previous php.dev (#53958) next »