<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/refs.fileprocess.file.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'en',
  ),
  'this' => 
  array (
    0 => 'book.dio.php',
    1 => 'Direct IO',
    2 => 'Direct IO',
  ),
  'up' => 
  array (
    0 => 'refs.fileprocess.file.php',
    1 => 'File System Related Extensions',
  ),
  'prev' => 
  array (
    0 => 'refs.fileprocess.file.php',
    1 => 'File System Related Extensions',
  ),
  'next' => 
  array (
    0 => 'dio.setup.php',
    1 => 'Installing/Configuring',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/dio/book.xml',
  ),
  'history' => 
  array (
  ),
  'extra_header_links' => 
  array (
    'rel' => 'alternate',
    'href' => '/manual/en/feeds/book.dio.atom',
    'type' => 'application/atom+xml',
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="book.dio" class="book">
 
 <h1 class="title">Direct IO</h1>
 
 
 <div id="intro.dio" class="preface">
  <h1 class="title">Introduction</h1>
  <p class="para">
   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
   (<span class="function"><a href="function.fopen.php" class="function">fopen()</a></span>, <span class="function"><a href="function.fread.php" class="function">fread()</a></span>,..).  The use
   of the DIO functions should be considered only when direct 
   control of a device is needed.  In all other cases, the standard
   <a href="book.filesystem.php" class="link">filesystem</a> functions are more
   than adequate. 
  </p>
 </div>
 
 
 







 





 







<ul class="chunklist chunklist_book"><li><a href="dio.setup.php">Installing/Configuring</a><ul class="chunklist chunklist_book chunklist_children"><li><a href="dio.installation.php">Installation</a></li><li><a href="dio.resources.php">Resource Types</a></li></ul></li><li><a href="dio.constants.php">Predefined Constants</a></li><li><a href="ref.dio.php">Direct IO Functions</a><ul class="chunklist chunklist_book chunklist_children"><li><a href="function.dio-close.php">dio_close</a> — Closes the file descriptor given by fd</li><li><a href="function.dio-fcntl.php">dio_fcntl</a> — Performs a c library fcntl on fd</li><li><a href="function.dio-open.php">dio_open</a> — Opens a file (creating it if necessary) at a lower level than the
   C library input/output stream functions allow</li><li><a href="function.dio-read.php">dio_read</a> — Reads bytes from a file descriptor</li><li><a href="function.dio-seek.php">dio_seek</a> — Seeks to pos on fd from whence</li><li><a href="function.dio-stat.php">dio_stat</a> — Gets stat information about the file descriptor fd</li><li><a href="function.dio-tcsetattr.php">dio_tcsetattr</a> — Sets terminal attributes and baud rate for a serial port</li><li><a href="function.dio-truncate.php">dio_truncate</a> — Truncates file descriptor fd to offset bytes</li><li><a href="function.dio-write.php">dio_write</a> — Writes data to fd with optional truncation at length</li></ul></li></ul></div><?php manual_footer($setup); ?>