PHP/fx/feof
Jump to navigation
Jump to search
|
PHP function:
feof() |
About
- Purpose: detects end-of-file on a file-type stream
Notes
- The documentation says the stream must have been opened with
fopen()orfsockopen()-- implying that it won't work with other kinds of streams, e.g. those opened withssh_exec(), but this is only sometimes true. The oversimplified version is that it will work iff the remote process terminates properly: some do, some don't. See wooz:2026/03/07.
Links
Reference
- php.net: feof()