RE: [PHP] Make fil downloadable

From: Date: Sat, 11 Jan 2003 00:24:28 +0000
Subject: RE: [PHP] Make fil downloadable
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-131210@lists.php.net to get a copy of this message
You need to send headers to tell the browser how to handle it see: header(); or.. if it is a php file and you want the visitor to see/download the source you would be better off giving it another extension eg .phps or .txt etc or have a handler file that did a readfile after sending headers. Timothy Hitchens (HiTCHO) Open Platform Consulting e-mail: tim@hitcho.com.au -----Original Message----- From: Stephen [mailto:webmaster@melchior.us] Sent: Saturday, 11 January 2003 10:17 AM To: PHP List Subject: [PHP] Make fil downloadable I need to somehow make it so when a user clicks a link, then get displayed the download dialogue for the file. The file is a .php file so I'm not sure how this is done but I've seen it been done before. How can you do this? Thanks, Stephen Craton http://www.melchior.us "What's the point in appearance if your true love, doesn't care about it?" -- http://www.melchior.us

« previous php.general (#131210) next »