This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
uphp:functions:feof [2017/03/27 20:49] jeff |
uphp:functions:feof [2021/09/13 05:57] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
======feof====== | ======feof====== | ||
+ | |||
< | < | ||
- | Test if no more data is available in a file or stream | + | Test if no more data is available in a file, stream |
====Description==== | ====Description==== | ||
- | <well size=" | + | |
- | <span style=" | + | <well size=" |
- | < | + | <span style=" |
- | <span style=" | + | <span style=" |
- | <span style=" | + | <span style=" |
- | <span style=" | + | <span style=" |
+ | <span style=" | ||
</ | </ | ||
Line 18: | Line 20: | ||
====Parameter==== | ====Parameter==== | ||
- | < | ||
- | ====Return | + | < |
- | 1 if no data available, 0 if more data available | + | |
+ | ====Return | ||
+ | |||
+ | < | ||
====Example==== | ====Example==== | ||
- | **Read the file index.cgi line by line and format the output for display on the screen:** | + | |
+ | ===Read the file index.cgi line by line and format the output for display on the screen=== | ||
<code php> | <code php> | ||
Line 41: | Line 46: | ||
====See Also==== | ====See Also==== | ||
+ | |||
[[fopen()]] - Open a file for reading or writing | [[fopen()]] - Open a file for reading or writing | ||
- | |||
- | [[f485open()]] - Open the RS-485 port at the specified baud rate and parity | ||
[[fseropen()]] - Open the serial port at the specified baud rate with optional parameters | [[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 | [[fsockopen()]] - Open an internet socket connection with optional timeout | ||
- | [[fread()]] - Return | + | [[fread()]] - Read bytes from a file, stream |
+ | |||
+ | [[fgets()]] - Return a single line from a file, stream | ||
+ | |||
+ | [[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 | ||
- | [[fgets()]] - Return | + | [[ftell()]] - Return |
[[fclose()]] - Close a file, stream or socket | [[fclose()]] - Close a file, stream or socket | ||
- | [[htmlspecialchars()]] - Convert characters for display in HTML | + | [[htmlspecialchars()]] - Convert |