Q132284591 发表于 2017-3-30 12:54:47

php中关于路径的函数

1,string realpath ( string $path )
Returns canonicalized absolute pathname(返回标准化绝对路径)

//will out put e:\MyWork\oDesk\canlendar\calendar_dev\calendar_dev\test
echorealpath ( '.' )
//will out put E:\MyWork\oDesk\canlendar\calendar_dev\calendar_dev\
echorealpath('../');
//will out put E:\MyWork\oDesk\canlendar\calendar_dev\calendar_dev\res
echo realpath('../res');
页: [1]
查看完整版本: php中关于路径的函数