jdock1 Posted May 29, 2009 Share Posted May 29, 2009 I made a php mail script, but I want it to be made so the user can enter his email address in the text box, then when he clicks submit it generates the php file for him, the email address he entered is hardcoded in the file by using a $_GET variable.. I already tried that with this code on top header("Cache-Control: no-cache"); header("Expires: -1"); header("Content-disposition: attachment; filename=\"send.php\""); header("Content-type: application/octet-stream"); ...but it downloads the html, no php code. Is this possible? Link to comment https://forums.phpfreaks.com/topic/160210-how-to-allow-headers-to-download-php-code/ Share on other sites More sharing options...
waynew Posted May 29, 2009 Share Posted May 29, 2009 Firstly; what are you trying to achieve? As in; why do you want to send it to them? Link to comment https://forums.phpfreaks.com/topic/160210-how-to-allow-headers-to-download-php-code/#findComment-845327 Share on other sites More sharing options...
jdock1 Posted May 29, 2009 Author Share Posted May 29, 2009 Everybody is looking for a php mail script, its so easy to code , but webmasters that dont know shit about php will look around for one. This way, the idiot who doesnt know php doesnt have to actually go into the php code and put their email address in their manually Link to comment https://forums.phpfreaks.com/topic/160210-how-to-allow-headers-to-download-php-code/#findComment-845339 Share on other sites More sharing options...
waynew Posted May 29, 2009 Share Posted May 29, 2009 Just simply edit and send the code to them via email - raw. Or in a .txt file. Link to comment https://forums.phpfreaks.com/topic/160210-how-to-allow-headers-to-download-php-code/#findComment-845348 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.