<!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>Resolve filename against the include path</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.stream-register-wrapper.html">stream_register_wrapper</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.stream-select.html">stream_select</a></div> <div class="up"><a href="ref.stream.html">Stream Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="function.stream-resolve-include-path" class="refentry"> <div class="refnamediv"> <h1 class="refname">stream_resolve_include_path</h1> <p class="verinfo">(PHP 5 >= 5.3.2)</p><p class="refpurpose"><span class="refname">stream_resolve_include_path</span> — <span class="dc-title"> Resolve filename against the include path </span></p> </div> <div class="refsect1 description" id="refsect1-function.stream-resolve-include-path-description"> <h3 class="title">Description</h3> <div class="methodsynopsis dc-description"> <span class="type">string</span> <span class="methodname"><strong>stream_resolve_include_path</strong></span> ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$filename</code></span> )</div> <p class="para rdfs-comment"> Resolve <em><code class="parameter">filename</code></em> against the include path according to the same rules as <span class="function"><a href="function.fopen.html" class="function">fopen()</a></span>/ <span class="function"><a href="function.include.html" class="function">include</a></span>. </p> </div> <div class="refsect1 parameters" id="refsect1-function.stream-resolve-include-path-parameters"> <h3 class="title">Parameters</h3> <p class="para"> <dl> <dt> <span class="term"><em><code class="parameter">filename</code></em></span> <dd> <p class="para"> The filename to resolve. </p> </dd> </dt> </dl> </p> </div> <div class="refsect1 returnvalues" id="refsect1-function.stream-resolve-include-path-returnvalues"> <h3 class="title">Return Values</h3> <p class="para"> Returns a <span class="type"><a href="language.types.string.html" class="type string">string</a></span> containing the resolved absolute filename, or <strong><code>FALSE</code></strong> on failure. </p> </div> <div class="refsect1 examples" id="refsect1-function.stream-resolve-include-path-examples"> <h3 class="title">Examples</h3> <p class="para"> <div class="example" id="example-4029"> <p><strong>Example #1 <span class="function"><strong>stream_resolve_include_path()</strong></span> example</strong></p> <div class="example-contents"><p> Basic usage example. </p></div> <div class="example-contents"> <div class="phpcode"><code><span style="color: #000000"> <span style="color: #0000BB"><?php<br />var_dump</span><span style="color: #007700">(</span><span style="color: #0000BB">stream_resolve_include_path</span><span style="color: #007700">(</span><span style="color: #DD0000">"test.php"</span><span style="color: #007700">));<br /></span><span style="color: #0000BB">?></span> </span> </code></div> </div> <div class="example-contents"><p>The above example will output something similar to:</p></div> <div class="example-contents screen"> <div class="cdata"><pre> string(22) "/var/www/html/test.php" </pre></div> </div> </div> </p> </div> </div><hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.stream-register-wrapper.html">stream_register_wrapper</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.stream-select.html">stream_select</a></div> <div class="up"><a href="ref.stream.html">Stream Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>