<pre name="code" class="brush: php">
<?php

$root = $_SERVER['DOCUMENT_ROOT'];
$file = $_SERVER['SCRIPT_NAME'];

$text =  htmlentities(file_get_contents($root . $file));
/* Syntax highliter doesn't let me do this :(
$lines = explode("\n", $text);
foreach ($lines as $ind => $line) {
	if (substr($line, 0, 6) == "//&lt;") {
		$lines[$ind] = html_entity_decode(substr($line, 2));
        } else if (substr($line, 0, 11) == "&lt;!--&lt;") {
		$lines[$ind] = html_entity_decode(substr($line, 7, -6));
	}
}
$text = implode("\n", $lines);
*/
print $text;
?>
</pre>
<script language="javascript" src="http://alexgorbatchev.com/pub/sh/2.0.320/scripts/shCore.js"></script>  
<script language="javascript" src="http://alexgorbatchev.com/pub/sh/2.0.320/scripts/shBrushPhp.js"/></script>
<link type="text/css" rel="stylesheet" href="http://alexgorbatchev.com/pub/sh/2.0.320/styles/shCore.css"></link>
<link type="text/css" rel="stylesheet" href="http://alexgorbatchev.com/pub/sh/2.0.320/styles/shThemeDefault.css"></link>

<script>
SyntaxHighlighter.all();
</script>  


<pre name="code" class="brush: php">
<?php

$root = $_SERVER['DOCUMENT_ROOT'];
$file = $_SERVER['SCRIPT_NAME'];

$text =  htmlentities(file_get_contents($root . $file));
/* Syntax highliter doesn't let me do this :(
$lines = explode("\n", $text);
foreach ($lines as $ind => $line) {
	if (substr($line, 0, 6) == "//&lt;") {
		$lines[$ind] = html_entity_decode(substr($line, 2));
        } else if (substr($line, 0, 11) == "&lt;!--&lt;") {
		$lines[$ind] = html_entity_decode(substr($line, 7, -6));
	}
}
$text = implode("\n", $lines);
*/
print $text;
?>
</pre>
<script language="javascript" src="http://alexgorbatchev.com/pub/sh/2.0.320/scripts/shCore.js"></script>  
<script language="javascript" src="http://alexgorbatchev.com/pub/sh/2.0.320/scripts/shBrushPhp.js"/></script>
<link type="text/css" rel="stylesheet" href="http://alexgorbatchev.com/pub/sh/2.0.320/styles/shCore.css"></link>
<link type="text/css" rel="stylesheet" href="http://alexgorbatchev.com/pub/sh/2.0.320/styles/shThemeDefault.css"></link>

<script>
SyntaxHighlighter.all();
</script>