Bifalgorithm post · Computer science one · Opening Files
How does PHP handle file input and output?
How does PHP handle file input and output? (Computer science one · Opening Files) — "Because of the history of PHP, file functions, just like string functions,…
Ideas in this flowchart
- PHP file functions reflect C-library conventions and provide configurable file I/O behavior.
- Their design was influenced by the history of PHP.
- File functions have naming conventions similar to those of C standard-library functions.
- File functions are used in ways similar to C standard-library functions.
- The functions selected determine whether data is written as binary or plaintext.
- File input/output streams may be buffered or unbuffered.
- The system configuration generally determines the stream buffering behavior.
- The buffering behavior can be changed in some ways.
- Those methods of changing buffering are not covered in detail.