Directory::rewind

(PHP 4, PHP 5, PHP 7) Rewind directory handle public void Directory::rewind ([ resource $dir_handle ] ) Same as rewinddir(), only dir_handle defaults to $this.

Directory::read

(PHP 4, PHP 5, PHP 7) Read entry from directory handle public string Directory::read ([ resource $dir_handle ] ) Same as readdir(), only dir_handle defaults to $this.

Directory::close

(PHP 4, PHP 5, PHP 7) Close directory handle public void Directory::close ([ resource $dir_handle ] ) Same as closedir(), only dir_handle defaults to $this.

dio_write

(PHP 4 >= 4.2.0, PHP 5 <= 5.0.5, PHP 7) Writes data to fd with optional truncation at length int dio_write ( resource $fd, string $data [, int $len = 0 ] ) dio_write() writes up to len bytes from data to file fd. Parameters: fd The file descriptor returned by dio_open(). data The written data. len

dio_truncate

(PHP 4 >= 4.2.0, PHP 5 <= 5.0.5, PHP 7) Truncates file descriptor fd to offset bytes bool dio_truncate ( resource $fd, int $offset ) dio_truncate() truncates a file to at most offset bytes in size. If the file previously was larger than this size, the extra data is lost. If the file previously was shorter, it is unspecified whether the file is left unchanged or is extended. In the latter case the extended part read

dio_tcsetattr

(PHP 4 >= 4.3.0, PHP 5 <= 5.0.5, PHP 7) Sets terminal attributes and baud rate for a serial port bool dio_tcsetattr ( resource $fd, array $options ) dio_tcsetattr() sets the terminal attributes and baud rate of the open fd. Parameters: fd The file descriptor returned by dio_open(). options The currently available options are:

dio_stat

(PHP 4 >= 4.2.0, PHP 5 <= 5.0.5, PHP 7) Gets stat information about the file descriptor fd array dio_stat ( resource $fd ) dio_stat() returns information about the given file descriptor. Parameters: fd The file descriptor returned by dio_open(). Returns: Returns an associative array with the following keys: "device" - device "inode

dio_seek

(PHP 4 >= 4.2.0, PHP 5 <= 5.0.5, PHP 7) Seeks to pos on fd from whence int dio_seek ( resource $fd, int $pos [, int $whence = SEEK_SET ] ) The function dio_seek() is used to change the file position of the given file descriptor. Parameters: fd The file descriptor returned by dio_open(). pos The new position.

dio_read

(PHP 4 >= 4.2.0, PHP 5 <= 5.0.5, PHP 7) Reads bytes from a file descriptor string dio_read ( resource $fd [, int $len = 1024 ] ) The function dio_read() reads and returns len bytes from file with descriptor fd. Parameters: fd The file descriptor returned by dio_open(). len The number of bytes to read. If not specified, dio_read()

dio_open

(PHP 4 >= 4.2.0, PHP 5 <= 5.0.5, PHP 7) Opens a file (creating it if necessary) at a lower level than the C library input/ouput stream functions allow. resource dio_open ( string $filename, int $flags [, int $mode = 0 ] ) dio_open() opens a file and returns a new file descriptor for it. Parameters: filename The pathname of the file to open.