<HTML ><HEAD ><TITLE >Directory functions</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="Function Reference" HREF="funcref.html"><LINK REL="PREVIOUS" TITLE="dio_write" HREF="function.dio-write.html"><LINK REL="NEXT" TITLE="chdir" HREF="function.chdir.html"><META HTTP-EQUIV="Content-type" CONTENT="text/html; charset=ISO-8859-1"></HEAD ><BODY CLASS="reference" 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="function.dio-write.html" ACCESSKEY="P" >Prev</A ></TD ><TD WIDTH="80%" ALIGN="center" VALIGN="bottom" ></TD ><TD WIDTH="10%" ALIGN="right" VALIGN="bottom" ><A HREF="function.chdir.html" ACCESSKEY="N" >Next</A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><DIV CLASS="reference" ><A NAME="ref.dir" ></A ><DIV CLASS="TITLEPAGE" ><H1 CLASS="title" >XXIV. Directory functions</H1 ><DIV CLASS="PARTINTRO" ><A NAME="AEN19882" ></A ><DIV CLASS="section" ><H1 CLASS="section" ><A NAME="dir.intro" ></A >Introduction</H1 ><P > </P ></DIV ><DIV CLASS="section" ><H1 CLASS="section" ><A NAME="dir.requirements" ></A >Requirements</H1 ><P >No external libraries are needed to build this extension.</P ></DIV ><DIV CLASS="section" ><H1 CLASS="section" ><A NAME="dir.installation" ></A >Installation</H1 ><P >There is no installation needed to use these functions; they are part of the PHP core.</P ></DIV ><DIV CLASS="section" ><H1 CLASS="section" ><A NAME="dir.configuration" ></A >Runtime Configuration</H1 ><P >This extension has no configuration directives defined in <TT CLASS="filename" >php.ini</TT >.</P ></DIV ><DIV CLASS="section" ><H1 CLASS="section" ><A NAME="dir.resources" ></A >Resource Types</H1 ><P > </P ></DIV ><DIV CLASS="section" ><H1 CLASS="section" ><A NAME="dir.constants" ></A >Predefined Constants</H1 ><P >This extension has no constants defined.</P ></DIV ><DIV CLASS="section" ><H1 CLASS="section" ><A NAME="dir.seealso" ></A >See Also</H1 ><P > For related functions such as <A HREF="function.dirname.html" ><B CLASS="function" >dirname()</B ></A >, <A HREF="function.is-dir.html" ><B CLASS="function" >is_dir()</B ></A >, <A HREF="function.mkdir.html" ><B CLASS="function" >mkdir()</B ></A >, and <A HREF="function.rmdir.html" ><B CLASS="function" >rmdir()</B ></A >, see the <A HREF="ref.filesystem.html" >Filesystem</A > section. </P ></DIV ></DIV ><DIV CLASS="TOC" ><DL ><DT ><B >Table of Contents</B ></DT ><DT ><A HREF="function.chdir.html" >chdir</A > -- Change directory</DT ><DT ><A HREF="function.chroot.html" >chroot</A > -- Change the root directory</DT ><DT ><A HREF="class.dir.html" >dir</A > -- directory class</DT ><DT ><A HREF="function.closedir.html" >closedir</A > -- close directory handle</DT ><DT ><A HREF="function.getcwd.html" >getcwd</A > -- gets the current working directory</DT ><DT ><A HREF="function.opendir.html" >opendir</A > -- open directory handle</DT ><DT ><A HREF="function.readdir.html" >readdir</A > -- read entry from directory handle</DT ><DT ><A HREF="function.rewinddir.html" >rewinddir</A > -- rewind directory handle</DT ></DL ></DIV ></DIV ></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="function.dio-write.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="function.chdir.html" ACCESSKEY="N" >Next</A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" >dio_write</TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="funcref.html" ACCESSKEY="U" >Up</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" >chdir</TD ></TR ></TABLE ></DIV ></BODY ></HTML >