 |
| ::: T4VN Statistics ::: |
PHP Scripts : 64 |
PHP Example : 67 |
PHP Tutorials : 21 |
PHP News : 93 |
Total Coupon : 36 |
Other Tutorials : |
Member : 215 |
Visitor Online : 2 |
Today Visit: 127 |
Total Visitor : 285993 |
Most Online : 41 |
|
 |
 |
Easy Code Highlighter With Numbers
Author : Shibity
This is just a simple 10 line code that takes a file and highlights it and numbers it.
| PHP Example : | | <?php
$file = "File Name Here";
$test = fopen($file, "r");
$num = 1;
while (!feof($test)) {
$tbuffer = fgets($test);
$buffer = $buffer.$num.' '.$tbuffer;
$num= $num +1;
}
highlight_string($buffer);
?>
| |
| |

|
 |
| ::: Resources ::: |
|
|
| ::: New Templates ::: |
|
| ::: Other Tutorials ::: |
|
 |