Login   Register  
PHP Classes
elePHPant
Icontem

File: getFileContents.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Cinu Chacko  >  Class Grep Search  >  getFileContents.php  >  Download  
File: getFileContents.php
Role: Auxiliary script
Content type: text/plain
Description: Display file contents.
Class: Class Grep Search
Search files in directories like grep
Author: By
Last change:
Date: 2008-08-19 05:29
Size: 184 bytes
 

Contents

Class file image Download
<?php
$file_path
=$_GET['file_path'];
$fileContents=file_get_contents($file_path);
$txt=htmlentities($fileContents);
$txt ereg_replace"\n"'<br />'$txt ); 
echo 
$txt;

?>