note 106295 added to function.strpos
| From: | MarkOates at osu1 dot php dot net | Date: | Wed, 26 Oct 2011 03:36:17 +0000 |
| Subject: | note 106295 added to function.strpos | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-184128@lists.php.net to get a copy of this message | ||
When using GLOB_BRACE to find files on a local computer, note that including the drive lettername
within the braces may cause the behavior to not work as expected:
<?php
$location = "{c:/foo/*.txt,c:/foo/bar/*.txt}"; // < will NOT work
$location = "c:{/foo/*.txt,/foo/bar/*.txt}"; // < works
$location = "c:/{foo/*.txt,foo/bar/*.txt}"; // < works
$location = "{/foo/*.txt,/foo/bar/*.txt}"; // < works
print_r(glob($location, GLOB_BRACE));
?>
----
Server IP: 69.147.83.197
Probable Submitter: 166.249.192.126
----
Manual Page -- http://www.php.net/manual/en/function.strpos.php
Edit -- https://master.php.net/note/edit/106295
Del: integrated -- https://master.php.net/note/delete/106295/integrated
Del: useless -- https://master.php.net/note/delete/106295/useless
Del: bad code -- https://master.php.net/note/delete/106295/bad+code
Del: spam -- https://master.php.net/note/delete/106295/spam
Del: non-english -- https://master.php.net/note/delete/106295/non-english
Del: in docs -- https://master.php.net/note/delete/106295/in+docs
Del: other reasons-- https://master.php.net/note/delete/106295
Reject -- https://master.php.net/note/reject/106295
Search -- https://master.php.net/manage/user-notes.php