note 53583 added to function.is-dir
| From: | php-general at lists dot php dot net | Date: | Mon, 06 Jun 2005 18:30:10 +0000 |
| Subject: | note 53583 added to function.is-dir | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-90018@lists.php.net to get a copy of this message | ||
With error reporting set to all, and you attempt to do:
echo var_dump(is_dir('bogus_dir/abc'));
as output you will get:
Warning: stat failed for bogus_dir/abc (errno=2 - No such file or directory) in test.php on line 12
bool(false)
If you want to use this with an error reporting level set to all, you will need to use @ to supress
the generated error
----
Manual Page -- http://www.php.net/manual/en/function.is-dir.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+53583
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+53583&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+53583&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+53583&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+53583&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+53583&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+53583&report=yes
Search -- http://master.php.net/manage/user-notes.php