SAVE an image from a remote web Server to another web server using PHP.
$f_img = fopen(“http://website /img/image23.jpg”,’rb’);
$new_img = “/tmp/img1.file”;
$f_new = fopen($new_img,’wb’);
while (!feof($f_img)) {
$chunk_rd = fread($f_img,1024);
fwrite($f_new,$chunk_rd);
}
fclose($f_new);
fclose(f_img);
?>
Tuesday, December 8, 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
If you are really interested about our blogger, Please Share your opinion here ...
If you Found Any Interviews in your reliable sources, Please Post the information through this Comment and It will be Published in our blogger. help every one to get a Job.