io proverei così:

Codice PHP:
$path "file.txt";
$size filesize($path);
$handle fopen($path"r");
 if (
$handle)
 {
$file_content fgets($handle$size)
fclose($handle);
 } 
oppure semplicemente:

Codice PHP:
require("file.txt"); 
di più non so dirti...