php_beginner_83 Posted November 27, 2009 Share Posted November 27, 2009 Hi All I was just wondering if it's possible to view a websites php source code? I know that php is a server side scripting language and that it is processed at the server and the results are sent back to the browser but there always seems to be ways around everything to do with computing. Thanks Quote Link to comment https://forums.phpfreaks.com/topic/183098-is-it-possible-to-view-php-source-code/ Share on other sites More sharing options...
vinpkl Posted November 27, 2009 Share Posted November 27, 2009 no its not possible. vineet Quote Link to comment https://forums.phpfreaks.com/topic/183098-is-it-possible-to-view-php-source-code/#findComment-966328 Share on other sites More sharing options...
oni-kun Posted November 27, 2009 Share Posted November 27, 2009 Hi All I was just wondering if it's possible to view a websites php source code? I know that php is a server side scripting language and that it is processed at the server and the results are sent back to the browser but there always seems to be ways around everything to do with computing. Thanks All the browser sees, is what is parsed. It does not even know if PHP, PERL or ASP is even generating the page unless the server tells it. The only way possible is if you gain FTP access etc. But it's impossible to change the hardcoded security the server has. Quote Link to comment https://forums.phpfreaks.com/topic/183098-is-it-possible-to-view-php-source-code/#findComment-966331 Share on other sites More sharing options...
Mchl Posted November 27, 2009 Share Posted November 27, 2009 The only way possible is if you gain FTP access etc. Or to find a security hole in the script itself that will allow you to inject code that will be evaled. Quote Link to comment https://forums.phpfreaks.com/topic/183098-is-it-possible-to-view-php-source-code/#findComment-966344 Share on other sites More sharing options...
PFMaBiSmAd Posted November 27, 2009 Share Posted November 27, 2009 Or if there is a file download link that allows an arbitrary filename to be specified on the end of the URL. Quote Link to comment https://forums.phpfreaks.com/topic/183098-is-it-possible-to-view-php-source-code/#findComment-966426 Share on other sites More sharing options...
php_beginner_83 Posted November 28, 2009 Author Share Posted November 28, 2009 Thanks everyone for your replies..now I know Quote Link to comment https://forums.phpfreaks.com/topic/183098-is-it-possible-to-view-php-source-code/#findComment-966823 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.