Re: [PHP] showing source

2007-05-17 Thread Paul Scott
On Fri, 2007-05-18 at 01:50 -0400, James Lockie wrote: > This almost works but all my < and > are replaced with "". > Rather use named entities, www.php.net/htmlentities --Paul All Email originating from UWC is covered by disclaimer http://www.uwc.ac.za/portal/uwc2006/content/mail_disclaimer/

[PHP] showing source

2007-05-17 Thread James Lockie
This almost works but all my < and > are replaced with "". // open this file to show the source if (($fh = fopen( __FILE__, 'r' )) === FALSE){ die ('Failed to open source file (' . $_FILE_ . ') for reading!'); } else { $tags = array( "<", ">" );

[PHP] Showing source with .phps extension?

2001-03-15 Thread Anders Pettersson
On my Linux RH 6.2 computer, when working with Apache, mySQL and PHP, there is no problems showing the source code to my code developing friends. If I rename the php-file to phps it works just well. BUT, when doing the very same thing on my W98 or W2k machines, the source code will not show. The