PDA

View Full Version : How can i get PHP source code from .php files



manoilayans
11-09-2006, 05:28 AM
Plz help to get source code of PHP from the .php files ...

Yours friendly
manoilayans

navaldesign
11-16-2006, 08:39 PM
Php code will not show on the browser. It will not even show in a code grabber, as grabbers are only capable to grab the html output created by a php page.

Robert
11-16-2006, 10:51 PM
Could someone elaborate on what is meant by "source code"?

im confused as to whether or not this is the same thing:

I download or save the .php file to a folder on my computer, then "right-click" the file, select "Open with>Notepad for simple viewing or Dreamweaver MX for a more structured view..

Is this the same as viewing the source code?

navaldesign
11-17-2006, 04:18 AM
Vewing the source code means vewing the code that creates an output on your browser. If the fles are pure html, what you see as source code is what actually the code of the file (page) is, but with php it is not like that. You only see the html code produced by the php code. The php itself cannot be downloaded or saved. When you visit a html page, the server answers the client request with the file content, when you visit a php page, the server interpretes the php code, and generates a response in html. What you see is this response, not the php code.

Robert
11-18-2006, 08:06 AM
Vewing the source code means vewing the code that creates an output on your browser. If the fles are pure html, what you see as source code is what actually the code of the file (page) is, but with php it is not like that. You only see the html code produced by the php code. The php itself cannot be downloaded or saved. When you visit a html page, the server answers the client request with the file content, when you visit a php page, the server interpretes the php code, and generates a response in html. What you see is this response, not the php code.

Fantastic, I really need to stop second guessing myself sometimes. I appreciate the clarification.

manoilayans
08-06-2008, 02:59 PM
thankz guys, 4 ur reply to me quotes.. but is there any possible to get the PHP code using any "File Operation"; ie., file read, file open etc.. in a specific website.. like http://www.sample.com/one.php

Yours friendly,
manoilayans (india)

davidundalicia
08-06-2008, 03:36 PM
No.....

The only person able to copy a php file from a server to to their computer
would be the owner/password keeper.