Re: file copy
| From: | Maxim Maletsky | Date: | Mon, 03 Feb 2003 12:39:54 +0000 |
| Subject: | Re: file copy | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-134104@lists.php.net to get a copy of this message | ||
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
maxim@php.net
"Cenk Uysal" <cenk_uysal@yahoo.com> 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
>