> function downloadfile($url, $imageDir)
> {
> if(!$file = fopen($url , "r"))
>{
> echo ("couldn't open $url\n");
>}
> else
>{
> #fpassthru($file);
> if($file2 = fopen("/www/sinead/images/Full/Sinead200.jpg", "w"))
> {
> $content=fread($file, filesize("$file
I'm trying to make it so I can download the image from a given URL and
rewrite it locally on the server. I can connect to the server and get the
image and display it. but as soon as I write it it doesn't work, I get
either an empty image or a string holder. The code is bleow. the hard coding
is ju
2 matches
Mail list logo