Re: Trying to popup a "Save as" window

From: Date: Wed, 19 Jul 2000 23:52:51 +0000
Subject: Re: Trying to popup a "Save as" window
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-7361@lists.php.net to get a copy of this message
on 7/19/00 4:44 PM, Emmanuel Gravel at e_gravel@yahoo.com wrote: > I'm trying to write a php script that will create a > text file that will be saved on the client disk > instead of being displayed onscreen. I've seen > CGI's do this before, usually by manipulating the > "Content-type" header, but that's not an option here. > Is there a way to get PHP to do this? If not, what > are other options? I've looked at javascript a bit > without success (thinking of getting the javascript > to popup the "save as" window and getting the content > from the script). Not the "Content-type" header, rather the "Content-disposition" header. header("Content-Disposition: attachment; filename=blah.txt"); -k

« previous php.general (#7361) next »