mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 08:58:56 +00:00
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:
parent
f880e69ab8
commit
232bf9c194
1 changed files with 32 additions and 0 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue