RE: [PHP-GENERAL] source
| From: | Andrew Braund | Date: | Wed, 21 Jun 2000 07:28:12 +0000 |
| Subject: | RE: [PHP-GENERAL] source | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-2454@lists.php.net to get a copy of this message | ||
You can also include the following in your source;
<H2>Source</H2>
<?
show_source(__FILE__); // or show_source($PATH_TRANSLATED);
?>
Note: I have tried this on WinNT and it works. On Win95 or Win98 is does
not work. I get the message;
Warning: Failed opening 'c:\\htdocs\\examples\\php\\info.php' for
highlighting in c:\htdocs\examples\php\info.php on line 28
Any ideas why this is happening?
Regards
Andrew Braund
> -----Original Message-----
> From: Chris Sano [mailto:sano@mail.rit.edu]
> Sent: Wednesday, 21 June 2000 16:06
> To: Paul Fontenot; php-general@lists.php.net
> Subject: RE: [PHP-GENERAL] source
>
>
> Just set the file extension to .phps and if it is configured in your
> httpd.conf file, it will show the source.
>
> Chris
>
> -----Original Message-----
> From: Paul Fontenot [mailto:paul@code-slinger.com]
> Sent: Wednesday, June 21, 2000 2:35 AM
> To: php-general@lists.php.net
> Subject: [PHP-GENERAL] source
>
>
> What is the function to show php source? Like when you click
> the source
> buttons on www.php.net...
>
> -Paul
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail:
> php-list-admin@lists.php.net
>
>