======feof====== WMPRO, WMMINI FW >= 1.0 WMMEGA FW >= 2.0 Test if no more data is available in a file, stream or socket ====Description==== int feof ( int $handle ) Return 1 (true) if no more data is available: The pointer is at the end of the file (EOF) or there is no more data pending in the stream's input. Return 0 (false) if there is more data available: The pointer is not at the end of the file or the stream's input has more pending data. ====Parameter==== $handle: Valid handle of a previously opened resource ====Return Values==== Integer: 1 if no data available, 0 if more data available ====Example==== ===Read the file index.cgi line by line and format the output for display on the screen===
====See Also==== [[fopen()]] - Open a file for reading or writing [[fseropen()]] - Open the serial port at the specified baud rate with optional parameters [[f485open()]] - Open the RS-485 port at the specified baud rate and parity [[fsockopen()]] - Open an internet socket connection with optional timeout [[fread()]] - Read bytes from a file, stream or socket [[fgets()]] - Return a single line from a file, stream or socket, with optional size limit [[fwrite()]] - Write data to a file, stream or socket [[filesize()]] - Return the size of a file, or the number of unread bytes in a stream or socket [[fseek()]] - Position the file pointer in an open file [[ftell()]] - Return the current position of a file read/write pointer [[fclose()]] - Close a file, stream or socket [[htmlspecialchars()]] - Convert special characters for display in HTML