<HTML ><HEAD ><TITLE >Streams Dir API Reference</TITLE ><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK REL="HOME" TITLE="PHP Manual" HREF="index.html"><LINK REL="UP" TITLE="Streams API for PHP Extension Authors" HREF="streams.html"><LINK REL="PREVIOUS" TITLE="php_stream_open_wrapper_as_file" HREF="streams.php-stream-open-wrapper-as-file.html"><LINK REL="NEXT" TITLE="php_stream_opendir" HREF="streams.php-stream-opendir.html"><META HTTP-EQUIV="Content-type" CONTENT="text/html; charset=ISO-8859-1"></HEAD ><BODY CLASS="sect1" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#840084" ALINK="#0000FF" ><DIV CLASS="NAVHEADER" ><TABLE SUMMARY="Header navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TH COLSPAN="3" ALIGN="center" >PHP Manual</TH ></TR ><TR ><TD WIDTH="10%" ALIGN="left" VALIGN="bottom" ><A HREF="streams.php-stream-open-wrapper-as-file.html" ACCESSKEY="P" >Prev</A ></TD ><TD WIDTH="80%" ALIGN="center" VALIGN="bottom" >Chapter 43. Streams API for PHP Extension Authors</TD ><TD WIDTH="10%" ALIGN="right" VALIGN="bottom" ><A HREF="streams.php-stream-opendir.html" ACCESSKEY="N" >Next</A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><DIV CLASS="sect1" ><H1 CLASS="sect1" ><A NAME="streams.dir-api" ></A >Streams Dir API Reference</H1 ><DIV CLASS="TOC" ><DL ><DT ><B >Table of Contents</B ></DT ><DT ><A HREF="streams.php-stream-opendir.html" >php_stream_opendir</A > -- Open a directory for file enumeration</DT ><DT ><A HREF="streams.php-stream-readdir.html" >php_stream_readdir</A > -- Fetch the next directory entry from an opened dir</DT ><DT ><A HREF="streams.php-stream-rewinddir.html" >php_stream_rewinddir</A > -- Rewind a directory stream to the first entry</DT ><DT ><A HREF="streams.php-stream-closedir.html" >php_stream_closedir</A > -- Close a directory stream and release resources</DT ></DL ></DIV ><P > The functions listed in this section work on local files, as well as remote files (provided that the wrapper supports this functionality!). </P ></DIV ><DIV CLASS="NAVFOOTER" ><HR ALIGN="LEFT" WIDTH="100%"><TABLE SUMMARY="Footer navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" ><A HREF="streams.php-stream-open-wrapper-as-file.html" ACCESSKEY="P" >Prev</A ></TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="index.html" ACCESSKEY="H" >Home</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><A HREF="streams.php-stream-opendir.html" ACCESSKEY="N" >Next</A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" >php_stream_open_wrapper_as_file</TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="streams.html" ACCESSKEY="U" >Up</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" >php_stream_opendir</TD ></TR ></TABLE ></DIV ></BODY ></HTML >