note 53947 added to function.glob
| From: | mjs15451 at hotmail dot com | Date: | Fri, 17 Jun 2005 22:03:58 +0000 |
| Subject: | note 53947 added to function.glob | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-90606@lists.php.net to get a copy of this message | ||
In regards to the comments made by: NOSPAM sketch at infinite dot net dot au, he is wrong about
Unix/Linux (I can't speak for Windows). I am running PHP 5.0.4 and I ran a bunch of different
tests on relative and absolute paths using the glob function and they all work on Unix/Linux. I
also tested glob on empty directories and patterns which don't match any files (even
directories or files which don't exist) and it __always__ returns an empty array. I
couldn't get the glob function to return false so it looks like it always returns an array.
----
Manual Page -- http://www.php.net/manual/en/function.glob.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+53947
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+53947&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+53947&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+53947&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+53947&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+53947&report=yes&reason=non-english
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+53947&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+53947&report=yes
Search -- http://master.php.net/manage/user-notes.php