note 4384 modified in function.is-dir by irc-html
| From: | irc-html@php.net | Date: | Wed, 23 Jan 2002 03:16:52 +0000 |
| Subject: | note 4384 modified in function.is-dir by irc-html | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-25727@lists.php.net to get a copy of this message | ||
seems like is_dir, is_file and is_link work correctly _only_ for filenames that have absolute path.
while
is_dir("index.html");
produces false result,
is_dir("$document_root/index.html");
produces correct result.
--was--
seems like is_dir, is_file and is_link work correctly _only_ for filenames that have absolute path.
while
<pre>
is_dir("index.html");
</pre>
produces false result,
<pre>
is_dir("$document_root/index.html");
</pre>
produces correct result.
http://www.php.net/manual/en/function.is-dir.php