I am trying to copy file from a url to a folder in my system using php
<?php $image = "http://l.yimg.com/t/frontpage/10-facts-slideshow-080512-630-01.jpg";
if (!copy($image, "localfolder/mainPic1.png")) {
echo "FAILED";
}else{echo "DONE";}
it always end up with "Failed"
All permissions are set to the localfolder
i checked the phpinfo and found that
allow_url_fopen =Off
as it is a shared server i do not have any control over the php settings . please can you suggest an alternative.
Thanks, Jay