File download

From: Date: Mon, 12 Mar 2001 08:23:42 +0000
Subject: File download
Groups: php.windows 
Request: Send a blank email to php-windows+get-5949@lists.php.net to get a copy of this message
Hi, I'm using following code to download a file. IE5 shows the Open/Save dialogue, if I select 'Save", it works. But if I select "Open", it again shows the same dialog with the name of my .php file. Now if I say open, it opens a blank file. Can anybody help me? header("Content-type: unknown"); header("Content-Disposition: attachment; filename=$name;"); readfile($name); Regards, | Linux Urmil Parikh | It is now safe to turn on your computer

« previous php.windows (#5949) next »