Is It Possible To See PHP Files Through A Web Browser? Just wondering, If a site is running using several PHP files, then is it possible to see individual files through a web browser (Using Port 80). Do I need to install any file for this on my web server or something? Thanks in advance.:) |
Re: Is It Possible To See PHP Files Through A Web Browser? Your browser can't see the source code of PHP files as the web server returns already compiled output from the execution of the script. |
Re: Is It Possible To See PHP Files Through A Web Browser? I got it valentin, Simply view the source file of a webpage and you can get an idea about the backend php coding Thanks any way! |
Re: Is It Possible To See PHP Files Through A Web Browser? Quote:
|
Re: Is It Possible To See PHP Files Through A Web Browser? As above, you can't see *any* of the PHP code. Full stop. Hence it's name: PHP: Hypertext Preprocessor PHP takes place before anything is sent to the client - i.e. it's a server side language. When you "View Source", you are seeing the HTML - which is the client-side code that makes up a web-page. |
Re: Is It Possible To See PHP Files Through A Web Browser? Quote:
Quote:
|
Re: Is It Possible To See PHP Files Through A Web Browser? Yup, it's one of the advantages of Php. It's server source language. :) |
Re: Is It Possible To See PHP Files Through A Web Browser? Yes there is no way unless u can download the file with its source |
Re: Is It Possible To See PHP Files Through A Web Browser? The only way it can be done is for the PHP server to be de-registered with the server and if that where to happen, all hell would let loose. so it doesnt happen very often. |
Just sharing my experience ... Well, there is some time when my .htaccess is messed up (during apache upgrade) and my PHP file is no longer execute as PHP but plain text. Then my PHP source is leaked out. =/ This is a rare, but it's safe most of the time. =) |
Re: Is It Possible To See PHP Files Through A Web Browser? Quote:
Is that about right ? James |
Re: Is It Possible To See PHP Files Through A Web Browser? Quote:
Bhupinder |
Re: Is It Possible To See PHP Files Through A Web Browser? As said by others PHP is a server side scripting , it just sends out the HTML response to your browser. So View Page Source will just give you the display part of it (HTML content) & not the application / business logic. But if you host the php source files in a server where PHP is not installed or integrated , then the files that you access via browser will just simply display the full code without parsing & you can visually all the php code with html content. If you purposely like to allow viewing the source code by your site visitors , then you can place the source code with ".phps" extension & when its viewed in the browser , it displays the code. Hope this helps :-) |
Re: Is It Possible To See PHP Files Through A Web Browser? No. It is not possible to see PHP files within the brower. You'll see the HTML created by the browser, but nothing more. |
Re: Is It Possible To See PHP Files Through A Web Browser? Quote:
Not accusing you of anything but I'm confused - as a developer I'd only bother to encrypt something that I didn't want modified. Bill |
All times are GMT -6. The time now is 06:51 PM. |