当前位置: 首页> 函数类别大全> 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
同类函数
  • 获取文件权限  fileperms

    fileperms

    获取文件权限
  • 改变文件模式  chmod

    chmod

    改变文件模式
  • 获取文件的最后访问时间  fileatime

    fileatime

    获取文件的最后访问时间
  • 轻便的咨询文件锁定  flock

    flock

    轻便的咨询文件锁定
  • 参见 unlink() 或 unset()(PHP 没有 delete 关键词或函数)  delete

    delete

    参见unlink()或unset()(P
  • 寻找与模式匹配的文件路径  glob

    glob

    寻找与模式匹配的文件路径
  • 返回文件路径的信息  pathinfo

    pathinfo

    返回文件路径的信息
  • 获取真实路径缓冲区的大小  realpath_cache_size

    realpath_cache_size

    获取真实路径缓冲区的大小