Location: PHPKode > scripts > Class Grep Search > class-grep-search/getFileContents.php
<?php
$file_path=$_GET['file_path'];
$fileContents=file_get_contents($file_path);
$txt=htmlentities($fileContents);
$txt = ereg_replace( "\n", '<br />', $txt ); 
echo $txt;

?> 
Return current item: Class Grep Search