![]() |
|
Can I view PHP source code from the browser - Printable Version +- Sinisterly (https://sinister.ly) +-- Forum: Coding (https://sinister.ly/Forum-Coding) +--- Forum: PHP (https://sinister.ly/Forum-PHP) +--- Thread: Can I view PHP source code from the browser (/Thread-Can-I-view-PHP-source-code-from-the-browser) Pages:
1
2
|
Can I view PHP source code from the browser - psbug - 08-24-2016 Hello, wanted to know if there is any possibility that one can view php source code with browser, from what I know php is the server side script where the browser produce html output, but can someone manage to do that? sorry team! RE: Can I view PHP source code from the browser - phyrrus9 - 08-24-2016 In short, no. If you want something like what you get with the rendering language (HTML/JS/CSS), then no. You can, however, using a wide range of other sources obtain such code, though it would be much more work than it is worth. RE: Can I view PHP source code from the browser - Mr.Kurd - 08-24-2016 No i ask this question before too. The result was No u can't. RE: Can I view PHP source code from the browser - psbug - 08-24-2016 (08-24-2016, 11:13 AM)phyrrus9 Wrote: In short, no. If you want something like what you get with the rendering language (HTML/JS/CSS), then no. You can, however, using a wide range of other sources obtain such code, though it would be much more work than it is worth. just give me a hint of those other sources, I'm curious to know and will do that hard work to learn RE: Can I view PHP source code from the browser - mothered - 08-24-2016 If you want to view a "PHP script" within your browser (locally), then you can If you Install PHP, drop the script In the root directory and view It as localhost/(filename).php In the URL of your browser's address bar. RE: Can I view PHP source code from the browser - Ex094 - 08-24-2016 Sorry but you can't because PHP is interpreted on the server side and then the results are sent to the client side hence it's impossible to view the source code unless the server has some kind of vulnerability RE: Can I view PHP source code from the browser - phyrrus9 - 08-25-2016 (08-24-2016, 12:35 PM)mothered Wrote: If you want to view a "PHP script" within your browser (locally), then you can If you Install PHP, drop the script In the root directory and view It as localhost/(filename).php In the URL of your browser's address bar. No, not the php output, the pho source code from a remote host. AFAIK the only way is to exploit some server bug to gain access to the filesystem (or disable php) RE: Can I view PHP source code from the browser - Wildfire - 08-25-2016 If you can fingerprint the host having the software and figured out what it was, you can download the source code (assuming it's public) and looking over it then. RE: Can I view PHP source code from the browser - phyrrus9 - 08-25-2016 (08-25-2016, 12:27 AM)Axi Wrote: If you can fingerprint the host having the software and figured out what it was, you can download the source code (assuming it's public) and looking over it then. Once again, that still assumes that the host intended for you to have such source. I think OP is looking for a way to visit an arbitrary website written in PHP, right click, view source, and get PHP instead of HTML/CSS. RE: Can I view PHP source code from the browser - Wildfire - 08-25-2016 (08-25-2016, 12:29 AM)phyrrus9 Wrote:(08-25-2016, 12:27 AM)Axi Wrote: If you can fingerprint the host having the software and figured out what it was, you can download the source code (assuming it's public) and looking over it then. I figured that too, but as everyone else has said so far, that's not really possible. So I offered an alternative. |