Re: file redirect?
| From: | Ed Lazor | Date: | Sun, 10 Feb 2002 23:17:16 +0000 |
| Subject: | Re: file redirect? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-84194@lists.php.net to get a copy of this message | ||
At 12:58 AM 2/11/2002 +0200, Bogdan Stancescu wrote:
Well, you have to send the actual file - otherwise the result of a zero-length file is not surprising at all.That makes sense. I thought the last line was doing that. How would I do it in a way that works for local and remote files?
$content_type = "Content-type: application/zip";
header($content_type);
header("Content-disposition: filename=".$filename);
header($destination);