note 95002 added to function.glob
| From: | muppe7 at nospam dot gmail dot com | Date: | Tue, 08 Dec 2009 08:01:53 +0000 |
| Subject: | note 95002 added to function.glob | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-163707@lists.php.net to get a copy of this message | ||
If you're wondering why glob() is not returning any result, you might find this article of a
belgium developer interesting:
http://seld.be/notes/major-glob-fail
[quote]
Working on some personal project that lists a bunch of stuff on my hard drive, I found out that
directories that contain square brackets (those []) don't return any results for the simple
reason that glob reads [stuff] as a character class, just like in regular expressions.
[/quote]
P.S.: I am not the author of the article, but I thought this helpful information should be placed
here.
----
Server IP: 92.48.119.85
Probable Submitter: 217.110.71.194
----
Manual Page -- http://www.php.net/manual/en/function.glob.php
Edit -- https://master.php.net/note/edit/95002
Del: integrated -- https://master.php.net/note/delete/95002/integrated
Del: useless -- https://master.php.net/note/delete/95002/useless
Del: bad code -- https://master.php.net/note/delete/95002/bad+code
Del: spam -- https://master.php.net/note/delete/95002/spam
Del: non-english -- https://master.php.net/note/delete/95002/non-english
Del: in docs -- https://master.php.net/note/delete/95002/in+docs
Del: other reasons-- https://master.php.net/note/delete/95002
Reject -- https://master.php.net/note/reject/95002
Search -- https://master.php.net/manage/user-notes.php