Docs for realpath().

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@28144 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Andrei Zmievski 2000-07-11 20:06:21 +00:00
parent f880e69ab8
commit 232bf9c194

View file

@ -2029,6 +2029,38 @@ $fp = popen ("/bin/ls", "r");
</refsect1>
</refentry>
<refentry id="function.realpath">
<refnamediv>
<refname>realpath</refname>
<refpurpose>Return canonicalized absolute pathname</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
<funcsynopsis>
<funcprototype>
<funcdef>string <function>realpath</function></funcdef>
<paramdef>string <parameter>path</parameter></paramdef>
</funcprototype>
</funcsynopsis>
<para>
<function>realpath</function> expands all symbolic links and
resolves references to '/./', '/../' and extra '/' characters in
the input <parameter>path</parameter> and return the canonicalized
absolute pathname. The resulting path will have no symbolic link,
'/./' or '/../' components.
</para>
<para>
<example>
<title><function>realpath</function> example</title>
<programlisting role="php">
$real_path = realpath("../../index.php");
</programlisting>
</example>
</para>
</refsect1>
</refentry>
<refentry id="function.symlink">
<refnamediv>
<refname>symlink</refname>