定义和用法 realpath() 函数返回绝对路径 语法 realpath(path) 参数解析 参数描述path必需。规定要检查的路径。 示例 <?php echo realpath("index.php"); ?> 输出 E:\wamp\www\demo\index.php 转载于:https://blog.51cto.com/suyanzhu/1896238