Is it possible to get the source code for a .php file before the server parses it into HTML? For example, is it possible to view the source for http://www.php.net/index.php with the php code intact? Thanks!
Any time you ask a (properly configured) server to deliver a PHP file, it will be parsed and processed.
However, you CAN write a script, server-side, to display the PHP code. See highlight_file() and readfile() in the docs.
Change the file extension 🙂