Re: file download

From: Date: Wed, 23 May 2001 07:57:00 +0000
Subject: Re: file download
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-54030@lists.php.net to get a copy of this message
Hello, I had the same problem as you for months! until someone post this a couple of weeks ago: header("Content-Type: application/octet-stream"); header("Content-Disposition: attachment; filename=file.txt"); include("file.txt"); py ----- Original Message ----- From: Aleksey Yarilovets <a_yarilo@inter.net.il> To: <php-general@lists.php.net> Sent: Wednesday, May 23, 2001 9:44 AM Subject: [PHP] file download > Hi everyone! > > I need user to dowload a file from my server ( Apache ), what i do is: > <? > header("Content-Type: application/download"); > header("Content-Disposition: attachment; filename='report.txt'"); > echo "file contents"; > ?> > > It was working till now but sudenly i start recieve the message from > iexplorer: > > IE can not download ScriptName.php file from the server. > IE was not able to open this site. The requested site either unavailable or > can not be found. > > :((((((((((((( > > Does somebody knows what is going on? > > Thanks, Alexey. > > Email: a.yarilovits@leadip.com > ICQ# 101975252 > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#54030) next »