当前位置: 首页> 函数类别大全> realpath

realpath

返回规范化的绝对路径名
名称:realpath
分类:文件系统
所属语言:php
一句话介绍:返回绝对路径名。

实例

<span class="token php language-php"><span class="token delimiter important"><?php</span>
<span class="token keyword">echo</span> <span class="token function">realpath</span><span class="token punctuation">(</span><span class="token string double-quoted-string">"test.txt"</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
<span class="token delimiter important">?></span></span>

输出:

C:\Inetpub\testweb\test.txt
同类函数
  • 关闭进程文件指针  pclose

    pclose

    关闭进程文件指针
  • 解析一个配置文件  parse_ini_file

    parse_ini_file

    解析一个配置文件
  • 修改符号链接的所有者  lchown

    lchown

    修改符号链接的所有者
  • 更改当前的 umask  umask

    umask

    更改当前的umask
  • 获取文件修改时间  filemtime

    filemtime

    获取文件修改时间
  • 建立一个硬连接  link

    link

    建立一个硬连接
  • 获取文件权限  fileperms

    fileperms

    获取文件权限
  • 将上传的文件移动到新位置  move_uploaded_file

    move_uploaded_file

    将上传的文件移动到新位置