超越PHP PHP动态 | 经典文章 | CLASS | 相关下载 | 常见问题 | FORUM | WIKI | 在线手册
Site search:    
<dbplus_xunlockreldio_close>
Last updated: Fri, 22 Jun 2007

XXIII. Direct IO Functions

简介

PHP supports the direct io functions as described in the Posix Standard (Section 6) for performing I/O functions at a lower level than the C-Language stream I/O functions (fopen(), fread(),..). The use of the DIO functions should be considered only when direct control of a device is needed. In all other cases, the standard filesystem functions are more than adequate.

This extension is only available on Windows Platforms as of PHP 5.0.0

需求

无需外部库文件就可以加入本扩展模块的支持。

安装

To get these functions to work, you have to configure PHP with --enable-dio.

运行时配置

该扩展模块未定义任何设置指令。

资源类型

One resource type is defined by this extension: a file descriptor returned by dio_open().

预定义常量

该扩展模块未定义任何常量。

目录
dio_close -- Closes the file descriptor given by fd
dio_fcntl -- Performs a c library fcntl on fd
dio_open --  Opens a new filename with specified permissions of flags and creation permissions of mode
dio_read --  Reads n bytes from fd and returns them, if n is not specified, reads 1k block
dio_seek -- Seeks to pos on fd from whence
dio_stat --  Gets stat information about the file descriptor fd
dio_tcsetattr --  Sets terminal attributes and baud rate for a serial port
dio_truncate --  Truncates file descriptor fd to offset bytes
dio_write --  Writes data to fd with optional truncation at length



add a note add a note User Contributed Notes
Direct IO Functions
There are no user contributed notes for this page.

<dbplus_xunlockreldio_close>
 Last updated: Fri, 22 Jun 2007
view source | feedback | send page | sitemap | aboutus   
Copyright ® 2002-2003 PHPE.NET. All rights reserved
Last updated:2002-11-22