string fgets ( resource $handle [, int $length ] )
Gets a line from file pointer.
Returns a string of up to length - 1 bytes read from the file pointed to by handle. If there is no more data to read in the file pointer, then FALSE is returned. If an error occurs, FALSE is returned.