Re: [PHP] PHP source display

2003-10-12 Thread Evan Nemerson
The functions Ryan is talkink about are show_source, highlight_file, and highlight_string, but they're a bit more work than getting *.phps files to work. I'm no apache wizard, and I don't know what's going on with the SetOutputFilter type stuff, but it's not what's in the manual at all. Take a

[PHP] PHP source display

2003-10-10 Thread Lists
When I used apache 1.3 I could call a file with an extension of .phps and it would display formatted source. In apache 2.0 it does not do this Here is my config from apache 2.0 LoadModule php4_module modules/libphp4.so # # Cause the PHP interpreter handle files with a .php extension. # Files

Re: [PHP] PHP source display

2003-10-10 Thread Ryan Thompson
Try using the function view_source(string filename) That's off the top of my head. Might be wrong. It's in the documentation On Friday 10 October 2003 15:41, Lists wrote: When I used apache 1.3 I could call a file with an extension of .phps and it would display formatted source. In apache 2.0