Re: [PHP] Help, can't seem to get this write

2001-01-20 Thread Richard Lynch
> 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

[PHP] Help, can't seem to get this write

2001-01-19 Thread Christopher Riordan
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