Page 1 of 1

Viewing source code of PHP as a TXT file.

Posted: Thu Jul 14, 2005 4:04 pm
by theda
Is there a way to be able to print PHP source code so that a viewer could view the source code?

Posted: Thu Jul 14, 2005 4:20 pm
by Burrito
take a look at highlight_file()

edit: 8O

damn, almost had to buy you lunch :D

Posted: Thu Jul 14, 2005 5:20 pm
by hopfateam
pretty nice function, never heard of it....

thx to the manual :D

Posted: Thu Jul 14, 2005 5:37 pm
by timvw
You're welcome :)

Posted: Thu Jul 14, 2005 6:53 pm
by theda
Thanks Tim, that's exactly what I needed! *is happy*

Posted: Thu Jul 14, 2005 9:07 pm
by timvw
I forgot to mention... http://geshi.sf.net