Re: __FILE__ constant
| From: | Jon Parise | Date: | Fri, 04 May 2001 22:31:37 +0000 |
| Subject: | Re: __FILE__ constant | ||
| References: | 1 2 3 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-53966@lists.php.net to get a copy of this message | ||
On Fri, May 04, 2001 at 04:28:56PM -0400, Chuck Hagenbuch wrote:
> > <?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.
It's working fine here, too.
--
Jon Parise (jon@csh.rit.edu) . Rochester Inst. of Technology
http://www.csh.rit.edu/~jon/ : Computer Science House
Member