note 31565 deleted from function.header by sniper

From: Date: Sun, 07 Sep 2003 21:42:40 +0000
Subject: note 31565 deleted from function.header by sniper
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-55646@lists.php.net to get a copy of this message
Note Submitter: emil.assarsson@delete.bolina.hsb.se ---- Aboute names on PHP-generated files: If you refer to the script with an extra path (pathinfo) like this <a href="/genfile.php/filename.pdf">download file</a> then the downloaded filename will be correct even on buggy IEs. This is a fine solution if the refering page know the filename. This works with Apache. I'm not sure if there is any problems with other servers. And another thing... Allways use correct Content-Type AND file suffix. This eliminates a lot of bugs. If a filetype don't have a registered mime-type, please tell this to the developers (this should be considered as a bug today).

« previous php.notes (#55646) next »