How to view PHP source code on a live site?
P粉512526720
P粉512526720 2023-08-24 09:16:28
0
2
524
<p>Is it possible to view the PHP code of a live website? </p>
P粉512526720
P粉512526720

reply all(2)
P粉759451255

Typically, no, as others have said, unless that's the case you want. You can then set it up so that using .phps (or any other extension, but that's the norm) will display the source code of the page (with syntax coloring I believe). Something like this:

AddHandler application/x-httpd-php-source .phps

In your apache configuration should solve the problem.

Please note that you need to save the .php file using .phps in order to display its source code.

P粉852114752

No, because it is interpreted on the server side and the result is sent to the user. If you want to view the source code of a site you control in the browser, consider the FirePHP extension href="http://getfirebug.com" rel="noreferrer">Firebug, or just use Access your website files using your preferred method.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template