fgets($FILE,4096);
only gets the 1st 4096 Bytes of the file ,
http://www.php.net/fgets
you could stick that if a while loop ..
PHP Code:
<?
$fp = fopen( 'filename.txt' , 'r' ) ;
while ( !feof ( $fp ) ) {
$str .= fgets( $fp , 4096 ) ;
}
?>
or quick and easy is
<?
$str = implode( '' , file( 'filename.txt' ) ) ;
?>
or if you have php >= 4.3.0
<?
$str = file_get_contents( 'filename.txt' ) ;
?>
its ALL in the manual , do yourself a favour and grab the windows CHM searchable manual