Snippet details
ID: 476
Viewed: 1843
Added: 2002-09-10
Version: php v4.1+
Sorry no demo
This little script will let you show the source code, of any PHP script, in color and it will also have line numbers on the left. This is good for those people that don't have the opportunity to use .phps extension do to the fact that their server is not running php as a module.
General Details
Snippet uploaded by: snippet
Email : webmaster@snippetlibrary.com
Snippet By: Unknown
<!---Head--->
none
<!---Body--->
<h1>Show source</h1>
<ol><li>
<?
ob_start();
show_source( "file.php" );
$t = ob_get_contents();
ob_end_clean();
echo ereg_replace( "<br />" , "</li><li>" , $t );
?>
</li></ol>
No Reviews to show
