glob(path_pattern, GLOB_ONLYDIR)
| From: | Al | Date: | Sun, 18 Mar 2007 00:02:30 +0000 |
| Subject: | glob(path_pattern, GLOB_ONLYDIR) | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-250768@lists.php.net to get a copy of this message | ||
I can't use flag "GLOB_ONLYDIR" to work on a Linux, php4.4.4. I only want the dirs.
This works; sort of:
print_r(glob('../*',)); //It lists all the files AND directories. Yet it seems to ignore the lack of ".*" and finds xxx.yyy. That's OK, I can delete the files
This fails:
print_r(glob('../*', GLOB_ONLYDIR));
And I get: "Warning: glob() expects parameter 2 to be long, string given in foo"
I can't find anything in the manual or when Googling.
Anyone can explain this for me?