Output the PHP file with the PHP syntax highlighted in PHP

Description

The following code shows how to output the PHP file with the PHP syntax highlighted.

Example


  //  ww  w  . j  a  v  a2 s.  c  om
<html>
<body>
    <?php
    show_source("a.php");
    ?>
</body>
</html>

The code above generates the following result.





















Home »
  PHP Tutorial »
    File »




Directory
DirectoryIterator
Drive
File
File Permission
File Read Save
FileSystemIterator
Path
Zip