How do I download php page or view source code?

stanvy

Registered Member
Jul 10, 2008
66
7
Hey there,

Anyone know how do I download a php page or view the php source code?

for example, www.abc.com/abc.php

I want to view or download abc.php, of course, the website doesn't belongs to me.

Any tools can do that?

Appreciate your help here!
 
nah, you can't see php source code with that method.

you can only see html, css and javascript.

I need to view php source code, anyone please?

I know it should be possible...
 
rightclick view source?

is that it

lol. is that your final answer?:newbie:
its php not html dear


stanvy, you may want to try httrack, although I havent tried it, sometimes it can download php files

Code:
http://www.httrack.com/
 
you can only download/view the php code when the php-parser is deactivated. and this won't happen very often (i have only seen it one time)...

so if you want to get the php code you'll need to have direct access to the server (ftp/ssh/...) or find a way/exploit to shut down the php parser... both ways are actually hacking so it's illegal and also it won't be easy if the app/server is secure
 
MAC's right - PHP stands for PHP Hypertext processor - its actually a programming language thats compiled.

Like imagine requesting to open MS word, you run the exe file and you get the program. You can't get the code. PHP is exactly the same (well, basically).

Its compiled everytime it's requested. Unless you can get FTP access or something and download it without requesting it through the webservice, you'll never get the source.

Just think of how many website databases and all the information contained in them would be screwed if you could!
 
php is a server side lingo....u can not view PHP source unless u have access to server
 
thanks snowwhite, I try to download and play with it later.

Well, I know php files is server site, I just wanna see the code, not the database, and I'm not into hacking stuff, not against it, but totally know nothing into hacking.

I'll keep you update if I'm successful with HTTrack
 
if this stuff was possible we would just download the PHP source of any popular site (that uses php) and make a nice functioning copy of them and never pay for PHP scripts again!

You have 2 options, pay a coder to reserve engineer your target site (make an exact copy of the site, with the same features) or hack into their servers and grab the PHP script.
 
HTTrack will just bring down the parse PHP code, so you will see the output but still won't get the actual PHP code behind the scenes.
 
Back
Top
AdBlock Detected

We get it, advertisements are annoying!

Sure, ad-blocking software does a great job at blocking ads, but it also blocks useful features and essential functions on BlackHatWorld and other forums. These functions are unrelated to ads, such as internal links and images. For the best site experience please disable your AdBlocker.

I've Disabled AdBlock