Re: file redirect?

From: Date: Sun, 10 Feb 2002 23:23:53 +0000
Subject: Re: file redirect?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-84195@lists.php.net to get a copy of this message
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

« previous php.general (#84195) next »