Click to See Complete Forum and Search --> : PHP File Indexer


slonison
09-12-2007, 02:58 AM
Ok, I've been having this problem for quite a long time and all my result is turning up null results. Perhaps the masters here can help me out.

I'm trying to create a php script which will search a folder on the network and return to me a list of the files in the directory. I cannot even opendir() the folder let alone get any information about the files inside the directory.

$dir2scan = "//G169/Games";
opendir($dir2scan);

With this code I end up getting the error:

Warning: opendir(//G169/Games) [function.opendir]: failed to open dir: Result too large in F:\xampp\htdocs\sf_all.php on line 68

I have researched this error but to no avail.



BTW: This code works without problem if I set:

$dir2scan = "//servername/Games";

where server name is the name of the computer that xampp runs off of.

please help me out guys.

NogDog
09-12-2007, 04:19 AM
If it's a Windows host, try it with back-slashes:

$dir2scan = "\\\\G169\\Games";

slonison
09-12-2007, 08:56 AM
Yes, it's a windows host, and already tried that. Same result. Thanks for the speedy response though.