View Single Post
  #2  
Old 21st July 2007, 23:24
Juddling Juddling is offline
Junior Member
 
Join Date: Jul 2007
Posts: 19
Thanks: 1
Thanked 0 Times in 0 Posts
Default Using PHP

I'm not too sure about the reading bytes part sorry but below is php that will read a file line by line:

<?php
$handle = @fopen("/tmp/inputfile.txt", "r");
if ($handle) {
while (!feof($handle)) {
$buffer = fgets($handle, 4096);
echo $buffer;
}
fclose($handle);
}
?>

http://uk.php.net/fgets
Reply With Quote