Page 1 of 1
help with function scan directorys
Posted: Wed May 23, 2007 4:11 pm
by john6000
Hi, I'm having a problem, im using the function from here to scan directorys
http://lixlpixel.org/recursive_function ... tory_scan/
but I Don't know how to get it to do sub directorys :/
can anyone help?

Posted: Wed May 23, 2007 6:10 pm
by djot
-
I didn't really read through the linked function, but it says it is recursivly.
So just call the function and look what is returned.
Code: Select all
<?php
$directories = scan_directory_recursively('PATH_OF_DIRECTORY_TO_SCAN');
print '<pre>';
var_dump($directories);
print '</pre>';
?>
djot
-
Posted: Wed May 23, 2007 7:27 pm
by John Cartwright
I've said this before, and I'll say it again, feyd has made a very nice snipplet to scan directories without recursion
viewtopic.php?p=256504#256504, and the previous post before that is the php5 version.
