<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>Open directory handle</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="streamwrapper.dir-closedir.html">streamWrapper::dir_closedir</a></div> <div class="next" style="text-align: right; float: right;"><a href="streamwrapper.dir-readdir.html">streamWrapper::dir_readdir</a></div> <div class="up"><a href="class.streamwrapper.html">streamWrapper</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="streamwrapper.dir-opendir" class="refentry"> <div class="refnamediv"> <h1 class="refname">streamWrapper::dir_opendir</h1> <p class="verinfo">(PHP 4 >= 4.3.2, PHP 5)</p><p class="refpurpose"><span class="refname">streamWrapper::dir_opendir</span> — <span class="dc-title">Open directory handle</span></p> </div> <div class="refsect1 description" id="refsect1-streamwrapper.dir-opendir-description"> <h3 class="title">Description</h3> <div class="methodsynopsis dc-description"> <span class="modifier">public</span> <span class="type">bool</span> <span class="methodname"><strong>streamWrapper::dir_opendir</strong></span> ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$path</code></span> , <span class="methodparam"><span class="type">int</span> <code class="parameter">$options</code></span> )</div> <p class="para rdfs-comment"> This method is called in response to <span class="function"><a href="function.opendir.html" class="function">opendir()</a></span>. </p> </div> <div class="refsect1 parameters" id="refsect1-streamwrapper.dir-opendir-parameters"> <h3 class="title">Parameters</h3> <p class="para"> <dl> <dt> <span class="term"><em><code class="parameter">path</code></em></span> <dd> <p class="para"> Specifies the URL that was passed to <span class="function"><a href="function.opendir.html" class="function">opendir()</a></span>. </p> <blockquote class="note"><p><strong class="note">Note</strong>: <p class="para"> The URL can be broken apart with <span class="function"><a href="function.parse-url.html" class="function">parse_url()</a></span>. </p> </p></blockquote> </dd> </dt> <dt> <span class="term"><em><code class="parameter">options</code></em></span> <dd> <p class="para"> Whether or not to enforce <a href="ini.sect.safe-mode.html#ini.safe-mode" class="link">safe_mode</a> (0x04). </p> </dd> </dt> </dl> </p> </div> <div class="refsect1 returnvalues" id="refsect1-streamwrapper.dir-opendir-returnvalues"> <h3 class="title">Return Values</h3> <p class="para"> Returns <strong><code>TRUE</code></strong> on success or <strong><code>FALSE</code></strong> on failure. </p> </div> <div class="refsect1 seealso" id="refsect1-streamwrapper.dir-opendir-seealso"> <h3 class="title">See Also</h3> <p class="para"> <ul class="simplelist"> <li class="member"> <span class="function"><a href="function.opendir.html" class="function" rel="rdfs-seeAlso">opendir()</a> - Open directory handle</span></li> <li class="member"> <span class="methodname"><a href="streamwrapper.dir-closedir.html" class="methodname" rel="rdfs-seeAlso">streamWrapper::dir_closedir()</a> - Close directory handle</span></li> <li class="member"> <span class="function"><a href="function.parse-url.html" class="function" rel="rdfs-seeAlso">parse_url()</a> - Parse a URL and return its components</span></li> </ul> </p> </div> </div><hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="streamwrapper.dir-closedir.html">streamWrapper::dir_closedir</a></div> <div class="next" style="text-align: right; float: right;"><a href="streamwrapper.dir-readdir.html">streamWrapper::dir_readdir</a></div> <div class="up"><a href="class.streamwrapper.html">streamWrapper</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>