[SOLVED] how to diplay the php code of the page.

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
dethron
Forum Contributor
Posts: 370
Joined: Sat Apr 27, 2002 11:39 am
Location: Istanbul

[SOLVED] how to diplay the php code of the page.

Post by dethron »

hi everyone :)

i have a little memory loss here, and i forget how to display the code of any given page.

i know there was a function to do that, but i am not sure at this particular moment.

let me specify it, i want to display the original content to the client, i mean the content before PHP parsed them.

kind regards.
Last edited by dethron on Mon Nov 08, 2004 6:11 pm, edited 1 time in total.
kettle_drum
DevNet Resident
Posts: 1150
Joined: Sun Jul 20, 2003 9:25 pm
Location: West Yorkshire, England

Post by kettle_drum »

You can save the file as .phps if the server is configured to show source that way or you can use highlight_file();
User avatar
dethron
Forum Contributor
Posts: 370
Joined: Sat Apr 27, 2002 11:39 am
Location: Istanbul

Post by dethron »

yes thank you ;)
Post Reply