Re: Show Source QUESTION
| From: | Daniel Brown | Date: | Fri, 10 Jul 2009 18:07:18 +0000 |
| Subject: | Re: Show Source QUESTION | ||
| References: | 1 | Groups: | php.general php.webmaster |
| Request: | Send a blank email to php-webmaster+get-5318@lists.php.net to get a copy of this message | ||
On Fri, Jul 10, 2009 at 02:47, David Lee<subless@yahoo.com> wrote:
> I was wanting to have a page called source.php like you guys, and have it display the source
> code for the pages, but I've looked at the source code for you guys source.php page and I
> can't seem to make it work on my server.
>
> Like how do you make a page display another php page without it executing the php scripts ?
That's a better question for the PHP General list (CC'd in this
email) than the Webmaster list. Feel free to subscribe there to get
help with PHP-related questions.
In direct answer to your question, however, check the following functions:
highlight_file() - http://php.net/highlight_file
highlight_string() - http://php.net/highlight_string
--
</Daniel P. Brown>
daniel.brown@parasane.net || danbrown@php.net
http://www.parasane.net/ || http://www.pilotpig.net/
Check out our great hosting and dedicated server deals at
http://twitter.com/pilotpig