note 94845 deleted from function.highlight-file by danbrown

From: Date: Mon, 30 Nov 2009 13:08:39 +0000
Subject: note 94845 deleted from function.highlight-file by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-163417@lists.php.net to get a copy of this message
Note Submitter: The real Assi ---- I use this scipt to open a php file and disply its content highlighted with line numbers <?php function highlight_phps_file($phps_folder,$phps_file) { $hls = ""; ob_start(); echo '<table class="phps_code" width="100%"><tr><td width="20px" valign="top" align="right">'; for ($i = 01; $i <= count(file("".trim($phps_folder)."/".trim($phps_file).".phps")); $i++) { echo '<font class="phps_num">'; if ($i <= 9){ echo "0"; } echo ''.$i.'</font>'; } echo '</td><td valign="top" align="left"'; $highlighted_phps_file = highlight_file("".trim($phps_folder)."/".trim($phps_file).".phps"); echo '</td></tr></table>'; $hls = "".ob_get_contents().""; ob_end_clean(); return $hls; } ?> And yes, i know its dirty

« previous php.notes (#163417) next »