Login Register


Can I view PHP source code from the browser filter_list
Author
Message
Can I view PHP source code from the browser #1
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!

Reply

RE: Can I view PHP source code from the browser #2
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.

Reply

RE: Can I view PHP source code from the browser #3
No i ask this question before too.
The result was No u can't.
Die  But Don't Lie
“Oh Abu Dharr! Don’t look at the smallness of the sin but look at the one you disobeyed.” Prophet Muhammad (pbuh)
[Image: p_237m2jx1.png]
Click for Free VPN

Reply

RE: Can I view PHP source code from the browser #4
(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

Reply

RE: Can I view PHP source code from the browser #5
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.
[Image: AD83g1A.png]

Reply

RE: Can I view PHP source code from the browser #6
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
My Blog: http://www.procurity.wordpress.com
Donations: 1HLjiSbnWMpeQU46eUVCrYdbkrtduX7snG

Reply

RE: Can I view PHP source code from the browser #7
(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)

Reply

RE: Can I view PHP source code from the browser #8
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.

Reply

RE: Can I view PHP source code from the browser #9
(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.

Reply

RE: Can I view PHP source code from the browser #10
(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.

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.

I figured that too, but as everyone else has said so far, that's not really possible. So I offered an alternative.

Reply







Users browsing this thread: 1 Guest(s)