Ah, didn't know you also serve remote files. In this case Philip's solution makes much more sense - otherwise you'll have to download the file on the server side and upload it to the client, which is way too much fuss to worth it.
Bogdan Ed Lazor wrote: > 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); > > -- > 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