PHP/fx/feof: Difference between revisions
from HTYP, the free directory anyone can edit if they can prove to me that they're not a spambot
Created page with "{{page/PHP/fx}} ==About== * '''Purpose''': detects end-of-file on a file-type stream ** The stream must have been opened with <code>{{l/pfx|PHP/fx/|fopen}}()</code> or <code>{..." |
No edit summary |
||
| Line 2: | Line 2: | ||
==About== | ==About== | ||
* '''Purpose''': detects end-of-file on a file-type stream | * '''Purpose''': detects end-of-file on a file-type stream | ||
==Notes== | |||
* The documentation says the stream must have been opened with <code>{{l/pfx|PHP/fx/|fopen}}()</code> or <code>{{l/pfx|PHP/fx/|fsockopen}}()</code> -- implying that it won't work with other kinds of streams, e.g. those opened with <code>{{l/pfx|PHP/fx/|ssh_exec}}()</code>, 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== | ==Links== | ||
===Reference=== | ===Reference=== | ||
* php.net: [https://www.php.net/manual/en/function.feof.php feof()] | * php.net: [https://www.php.net/manual/en/function.feof.php feof()] | ||
Latest revision as of 14:48, 7 March 2026
About
- Purpose: detects end-of-file on a file-type stream
Notes
- The documentation says the stream must have been opened with
Template:L/pfx()orTemplate:L/pfx()-- implying that it won't work with other kinds of streams, e.g. those opened withTemplate:L/pfx(), 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()
