Page 1 of 1

Posting PHP code on webpages

Posted: Wed Mar 31, 2004 2:45 am
by jbatty
I know this is more like a HTML question - please forgive me.
When I post my PHP scripts on a web page for my supervisor to view, the browser messes about with the code formatting and something execute part of the script. Even if a put the "code" or "pre" tags in the HTML file. How can I avoid this please.

Posted: Wed Mar 31, 2004 3:24 am
by Pozor
Hi,

try it with

Code: Select all

<?php
show_source($file);
/*
$file should be like that -> $file='file_to_show.php';
*/
?>
this works fine, with nice highlighting!

greez Pozor

Posted: Wed Mar 31, 2004 6:07 pm
by jbatty
Thank you - it worked