Is there any way to get the source code of a PHP script that's published on the web?
Printable View
Is there any way to get the source code of a PHP script that's published on the web?
I hope not... BIG securityhole
I haven't worked a lot with PHP, but as far as I know it's the same principle as ASP. A server generates HTML-code from a script and sends that to the client.
If people want you to be able to view the source, there's a .phps extension that PHP processes by color-coding the source code and displaying it. Else not, like CreoN said, it would be a security hole.