I just read somewhere that you can view the php source of a document by making a change to your httpd.conf and hitting the file with a phps extension. I made the addtype changes required to apache's httpd.conf and tried hitting pages as phps, but all I got was page not found errors (404)s from apache. Does anyone know of other config changes I need to make?
Viewing Source with PHPS
Did you also save your file as filename.phps? If you don't then it won't show up.
404 errors means that the file doesn't exist. You can't save it as "file.php" and then try and link to "file.phps". Save the files as .phps.
Additional phps? I thought that the benefit of this was to be able to switch between parsing and code view on the same file? The only benefit i see with doing it this way is color coded views. Are you sure there isn't a more seemless way to do this?
Not that I am aware of. If there is I would like to know too but it is my understanding that the file has to have the .phps extension.
You could do a regular PHP page and try an 'include file.phps'. I'm not sure if it'll parse it with the colour-coding, but it's worth a try.