I'm trying to open a directory on my site, to loop through the images.
This code:
$directory = opendir('http://www.site.com/thumbs/');
Generates the following error:
Warning: opendir('http://www.site.com/thumbs/) [function.opendir]: failed to open dir: No such file or directory in /home/site/public_html/admin/copy_thumbs.php on line 4
The documentation at php.net doesn't seem to indicate that you can't use a fully qualified URL, but none of the examples show one either.
I read one thing that said you can't use http with opendir, but I also read something that said a fully qualified URL should work. I've tried just "thumbs", "/thumbs" and "/thumbs/" and many other variations and none work.
Any ideas?