You must change the headers for the file so it is being downloaded.
Something like this:
header('Content-Type: GIF'); // not sure of this one
header('Content-Length: ' . filesize('file.gif'));
header("Content-Disposition: attachment;
filename=\"file.gif\"");
--
Maxim Maletsky
[EMAIL PROTECTED]
"Cenk Uysal" <[EMAIL PROTECTED]> wrote... :
> hi,
>
> how can i copy a file from web to my local disk?
>
> http://www.xxx.com/xxx.gif
>
> i try to get xxx.gif to my local disk...
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php