makoinater Posted May 12, 2008 Share Posted May 12, 2008 Hey PHP friends, was just wondering is it possible to just download a PHP file as in save as from http:// but without the file being executed by the remote server - Im trying to get files off my old website as a template for a new one but just want the source php ( login details long gone was on a free server) Thanks if you can Link to comment https://forums.phpfreaks.com/topic/105337-getting-the-php-file-to-download-without-being-executed/ Share on other sites More sharing options...
DarkWater Posted May 12, 2008 Share Posted May 12, 2008 If you could do that, then anyone could get your source code. Simply: No. Link to comment https://forums.phpfreaks.com/topic/105337-getting-the-php-file-to-download-without-being-executed/#findComment-539505 Share on other sites More sharing options...
roopurt18 Posted May 12, 2008 Share Posted May 12, 2008 Does your old site or host provide a backup feature? If it does you can back it up and download it. Link to comment https://forums.phpfreaks.com/topic/105337-getting-the-php-file-to-download-without-being-executed/#findComment-539508 Share on other sites More sharing options...
makoinater Posted May 12, 2008 Author Share Posted May 12, 2008 Ah crap, What if I just needed to show the variable names displayed, with the question mark thing I dunno something like mypage.php?showvar Link to comment https://forums.phpfreaks.com/topic/105337-getting-the-php-file-to-download-without-being-executed/#findComment-539509 Share on other sites More sharing options...
makoinater Posted May 12, 2008 Author Share Posted May 12, 2008 Does your old site or host provide a backup feature? If it does you can back it up and download it. as I said no login details was done ages ago as college project and been through many email addresses since then Link to comment https://forums.phpfreaks.com/topic/105337-getting-the-php-file-to-download-without-being-executed/#findComment-539510 Share on other sites More sharing options...
roopurt18 Posted May 12, 2008 Share Posted May 12, 2008 Sounds like you're SOL. Link to comment https://forums.phpfreaks.com/topic/105337-getting-the-php-file-to-download-without-being-executed/#findComment-539523 Share on other sites More sharing options...
benphp Posted May 12, 2008 Share Posted May 12, 2008 You can do it manually by pasting your code here on in the Post Reply text area - then click Preview, and it will format your code into a single string of color-coded HTML. Link to comment https://forums.phpfreaks.com/topic/105337-getting-the-php-file-to-download-without-being-executed/#findComment-539525 Share on other sites More sharing options...
litebearer Posted May 13, 2008 Share Posted May 13, 2008 well let's see... 1 host still has site up and running 2 you can verifiy you were the creator if that is the case then simply email the host and request - ever so politely - they either forward the files to you or perhaps allow you temporary access to the files. Its simply amazing what people will do for you IF you are polite and explain your need. Just a thought. Lite Link to comment https://forums.phpfreaks.com/topic/105337-getting-the-php-file-to-download-without-being-executed/#findComment-539792 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.