Problems with downloading files remotely ...
I have a remote path
http://www/images/
There are a lot of pictures inside. Want to download down, do not know what is the right way?
No file name: Only path name:
------Solution--------------------
First make sure that the directory is readable
Opendir () after Readdir () then read the following letter
PHP Code
function Grabimage ($url) {if ($url = = ""): return false;endif; $filename = ' qq/'. STRRCHR ($url, "/"); Ob_start (); ReadFile ($ URL); $img = Ob_get_contents (); Ob_end_clean (); $size = strlen ($img); $FP 2= @fopen ($filename, "a"); Fwrite ($fp 2, $img); Fclose ($fp 2); return $filename; }
------Solution--------------------
Explore
If not readable: Is there any way to do it ...
------Solution--------------------
Remote Access http://www/images/
This allows direct access to 90% of the server configuration will tell you the English answer "Access Denied"!