August 2003
Intermediate to advanced
1104 pages
19h 27m
English
PHP supports lower level I/O than provided by the functions discussed earlier in this chapter. The file handles used by these functions are incompatible with those functions. Using Direct I/O for regular files is not interesting in most cases because the higher level functions are more convenient. Direct I/O becomes interesting when you wish to write to devices such as terminals, parallel ports, and serial ports. Keep in mind permission issues. Under normal circumstances, your Web server should not have permission to write directly to a serial port, for instance.
Sterling Hughes created the Direct I/O extension.
The dio_close function closes an open file handle.
Read now
Unlock full access