fopen(pathToFile, mode);
$handle = fopen('/path/to/file.txt', 'r'); while (!feof($file)) { $line = fgets($file); echo $line; } fclose($file);