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.
Feed/

How does PHP handle file input and output?

No cover

Channel

Computer science one

1 page

"Because of the history of PHP, file functions, just like string functions, were mostly influenced by the C standard library functions and have very similar naming and usage. Writing binary or plaintext data is determined by which functions you use. In general whether or not a file input/output stream is buffered or unbuffered is determined by the system configuration. There are some ways in which this can be changed, but we will not cover them in detail."

Flowchart preview
👍
0
0 comments0 shares

Sign in to view and post comments.