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: [EMAIL PROTECTED] -----Original Message----- From: Stephen [mailto:[EMAIL PROTECTED]] 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php