here i made a script which will get image and out image contents in a file but when you go preview the image it display x as no image avaliable. any idea ! here is the script:
$url_file = fopen("location for image url.jpg", "r");
$local_file = fopen("mylocation\here.jpg", "w");
while(!feof($url_file )){
$url_image_content .= fgets($url_file , 500000);
}
fwrite($local_file, $url_image_content);
fclose($local_file);
fclose($url_file );
please tell me what is wronge im doing in here.