A note exists at http://www.php.net/highlight_file that says:
Note: The return parameter became available in PHP 4.2.0. Before
this time it behaved like the default, which is FALSE
So if you want to capture the output of highlight_file before
4.2.0 then you'll need to use output
I meant to use highlight_file instead of highlight_string, doh!
I'll go back in time and modify the source below :)
Philip
On Thu, 4 Apr 2002, Philip Olson wrote:
A note exists at http://www.php.net/highlight_file that says:
Note: The return parameter became available in PHP 4.2.0.
How about just make a symbolic link with .phps to the file:
ln -s /www/htdocs/phpdoc.php /www/htdocs/phpdoc.phps
Then make sure that your httpd.conf file has the following line in it:
AddType application/x-httpd-php-source .phps
Then url.com/phpdoc.phps would view the colored source for the
3 matches
Mail list logo