<HTML ><HEAD ><TITLE >Directory and File 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="Source Layout" HREF="zend.layout.html"><LINK REL="PREVIOUS" TITLE="Memory Management" HREF="zend.layout.memory-management.html"><LINK REL="NEXT" TITLE="String Handling" HREF="zend.layout.string-handling.html"><META HTTP-EQUIV="Content-type" CONTENT="text/html; charset=ISO-8859-1"></HEAD ><BODY CLASS="section" 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="zend.layout.memory-management.html" ACCESSKEY="P" >Prev</A ></TD ><TD WIDTH="80%" ALIGN="center" VALIGN="bottom" >Chapter 26. Source Layout</TD ><TD WIDTH="10%" ALIGN="right" VALIGN="bottom" ><A HREF="zend.layout.string-handling.html" ACCESSKEY="N" >Next</A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><DIV CLASS="section" ><H1 CLASS="section" ><A NAME="zend.layout.dir-and-file" ></A >Directory and File Functions</H1 ><P > The following directory and file functions should be used in Zend modules. They behave exactly like their C counterparts, but provide virtual working directory support on the thread level. <DIV CLASS="informaltable" ><A NAME="AEN99650" ></A ><P ></P ><TABLE BORDER="1" CLASS="CALSTABLE" ><TBODY ><TR ><TD WIDTH="50%" ALIGN="LEFT" VALIGN="MIDDLE" >Zend Function</TD ><TD WIDTH="50%" ALIGN="LEFT" VALIGN="MIDDLE" >Regular C Function</TD ></TR ><TR ><TD WIDTH="50%" ALIGN="LEFT" VALIGN="MIDDLE" ><B CLASS="function" >V_GETCWD()</B ></TD ><TD WIDTH="50%" ALIGN="LEFT" VALIGN="MIDDLE" ><A HREF="function.getcwd.html" ><B CLASS="function" >getcwd()</B ></A ></TD ></TR ><TR ><TD WIDTH="50%" ALIGN="LEFT" VALIGN="MIDDLE" ><B CLASS="function" >V_FOPEN()</B ></TD ><TD WIDTH="50%" ALIGN="LEFT" VALIGN="MIDDLE" ><A HREF="function.fopen.html" ><B CLASS="function" >fopen()</B ></A ></TD ></TR ><TR ><TD WIDTH="50%" ALIGN="LEFT" VALIGN="MIDDLE" ><B CLASS="function" >V_OPEN()</B ></TD ><TD WIDTH="50%" ALIGN="LEFT" VALIGN="MIDDLE" ><B CLASS="function" >open()</B ></TD ></TR ><TR ><TD WIDTH="50%" ALIGN="LEFT" VALIGN="MIDDLE" ><B CLASS="function" >V_CHDIR()</B ></TD ><TD WIDTH="50%" ALIGN="LEFT" VALIGN="MIDDLE" ><A HREF="function.chdir.html" ><B CLASS="function" >chdir()</B ></A ></TD ></TR ><TR ><TD WIDTH="50%" ALIGN="LEFT" VALIGN="MIDDLE" ><B CLASS="function" >V_GETWD()</B ></TD ><TD WIDTH="50%" ALIGN="LEFT" VALIGN="MIDDLE" ><B CLASS="function" >getwd()</B ></TD ></TR ><TR ><TD WIDTH="50%" ALIGN="LEFT" VALIGN="MIDDLE" ><B CLASS="function" >V_CHDIR_FILE()</B ></TD ><TD WIDTH="50%" ALIGN="LEFT" VALIGN="MIDDLE" > Takes a file path as an argument and changes the current working directory to that file's directory. </TD ></TR ><TR ><TD WIDTH="50%" ALIGN="LEFT" VALIGN="MIDDLE" ><B CLASS="function" >V_STAT()</B ></TD ><TD WIDTH="50%" ALIGN="LEFT" VALIGN="MIDDLE" ><A HREF="function.stat.html" ><B CLASS="function" >stat()</B ></A ></TD ></TR ><TR ><TD WIDTH="50%" ALIGN="LEFT" VALIGN="MIDDLE" ><B CLASS="function" >V_LSTAT()</B ></TD ><TD WIDTH="50%" ALIGN="LEFT" VALIGN="MIDDLE" ><A HREF="function.lstat.html" ><B CLASS="function" >lstat()</B ></A ></TD ></TR ></TBODY ></TABLE ><P ></P ></DIV ></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="zend.layout.memory-management.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="zend.layout.string-handling.html" ACCESSKEY="N" >Next</A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" >Memory Management</TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="zend.layout.html" ACCESSKEY="U" >Up</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" >String Handling</TD ></TR ></TABLE ></DIV ></BODY ></HTML >