note 86460 deleted from function.basename by thiago
| From: | thiago@php.net | Date: | Mon, 20 Oct 2008 14:37:07 +0000 |
| Subject: | note 86460 deleted from function.basename by thiago | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-145516@lists.php.net to get a copy of this message | ||
Note Submitter: php at mindloop dot be
----
In response to <me at jamessocol dot com>
You might wanna try
<?php
$cur_dir = dirname(__FILE__);
?>
or since php 5.3.0 (http://www.php.net/manual/en/language.constants.predefined.php)
<?php
$cur_dir = __DIR__;
?>