note 13119 deleted from language.constants by irc-html
| From: | irc-html@php.net | Date: | Sat, 19 Jan 2002 19:06:04 +0000 |
| Subject: | note 13119 deleted from language.constants by irc-html | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-25226@lists.php.net to get a copy of this message | ||
It seems to be that __FILE__ doesn`t work as advertised.
A script (a.php) like this:
<?php
echo __FILE__;
?>
outputs
/usr/local/htdocs/a.php
A script (b.php) like this:
<?php
include("./a.php");
?>
outputs
./a.php
Where is the rest of the path (/usr/local/htdocs) ?
That
s why the Smarty Template Engine 1.4.1 isnt working for me.
http://www.phpinsider.com/php/code/Smarty
I am using FreeBSD 4.1.1, Apache 1.3.14, PHP 4.0.4PL1.
Ciao,
Sebastian