Thirteen Years of Service
Posts: 7
Threads: 2
Can I view PHP source code from the browser 08-24-2016, 11:03 AM
#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!
•
Thirteen Years of Service
Posts: 2,421
Threads: 231
RE: Can I view PHP source code from the browser 08-24-2016, 11:13 AM
#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.
•
Ten Years of Service
Posts: 1,897
Threads: 94
RE: Can I view PHP source code from the browser 08-24-2016, 11:18 AM
#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]](http://c.top4top.net/p_237m2jx1.png)
Click for Free VPN
•
Thirteen Years of Service
Posts: 74,304
Threads: 317
RE: Can I view PHP source code from the browser 08-24-2016, 12:35 PM
#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.
•
Thirteen Years of Service
Posts: 3,143
Threads: 100
RE: Can I view PHP source code from the browser 08-24-2016, 12:45 PM
#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
•
Twelve Years of Service
Posts: 1,038
Threads: 59
RE: Can I view PHP source code from the browser 08-25-2016, 12:27 AM
#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.
•