当前位置:Linux教程 - Php - php原码颜色

php原码颜色

PHP原码颜色




  Code: [Copy to clipboard]   
<?
$fd
= fopen ("c:\windows\desktop\test.php", "r");
while (!
feof ($fd)) {
$buffer = fgets($fd, 4096);
$php_code .= $buffer;
}
highlight_string($php_code);
fclose ($fd);
?>  


还有更easy的哦:
<?php
highlight_file
("test.php");
?>