How do I display the actual code of a php page?
I looked at source.php on php.net's source viewer. I didn't quite understand it and didn't know what exactly was outputting the data.
What are the functions or calls that will display the source of a page?
Depending on what you are trying to do, you can just make a copy of your php script and give it a .phps extention which will display the source code for the page.
Originally Posted by N9ne
Really? I didn't know that having .phps will do that! Thanks.
Question: what is the application handler type thing for .phps?
It should be application/x-httpd-php-source.
ok, thanks for the help
If your talking about wanting to look at the php code behind a site thats powering it, you really can't unless you know the exact name of the files, then you can make links to them and do 'save as'.
Uh, no you can't. That will just save the html results.
Originally Posted by Archbob
Think about it, If that would work than every site running php-nuke, phpbb, & any php project would be compromised.
Otherwise something like this would work: http://www.sitepointforums.com/config.php
Then I'd have your db username/password.