note 29630 added to function.glob
| From: | martin dot rode at zeroscale dot com | Date: | Wed, 19 Feb 2003 17:37:34 +0000 |
| Subject: | note 29630 added to function.glob | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-44215@lists.php.net to get a copy of this message | ||
If you don't have PHP >= 4.3 available and don't want to hassle with PHP (:-) do
something like this on GNU/Linux:
foreach (explode("\n",
find -type d -maxdepth 1 ! -name ".*" -printf
"%f\n" ) as $dirname) {
print $dirname;
}
With the "find" you can "glob" whatever you like.
--
http://www.php.net/manual/en/function.glob.php
http://master.php.net/manage/user-notes.php?action=edit+29630
http://master.php.net/manage/user-notes.php?action=delete+29630
http://master.php.net/manage/user-notes.php?action=reject+29630