Page 1 of 1

GLOB showing all files???

Posted: Sat Dec 31, 2005 1:00 pm
by alex.barylski
This is what I have thus far...

Code: Select all

$arr_files = glob("$path/*.*");
But it doesnt show files without extensions??? :?

I've tried *. and .* and neither produces all files, regardless of file extension or lack thereof...

Any ideas???

Cheers :)

Posted: Sat Dec 31, 2005 1:05 pm
by sheila
Have you tried this?

Code: Select all

$arr_files = glob("$path/*");

Posted: Sat Dec 31, 2005 1:41 pm
by alex.barylski
sheila wrote:Have you tried this?

Code: Select all

$arr_files = glob("$path/*");
No I have not, but I will now :)

Edit: Shoot...yes I have actually, but I use it for folders...and they way I generate files/folders won't allow me to use the above :(

I would have to rewrite alot of my code... :)

Ah well...

Thanks anyways

Posted: Sat Dec 31, 2005 2:03 pm
by Ambush Commander
You could always use the directory functions...