função PHP realpath ()
Definição e Uso
função realpath () retorna o caminho absoluto.
Esta função apaga todos os links simbólicos (tais como '/./', '/../' e extra '/'), e retorna o caminho absoluto.
Se isto falhar, a função retorna FALSE.
gramática
realpath(path)
参数 | 描述 |
---|---|
path | 必需。规定要检查的路径。 |
Exemplos
<?php
echo realpath("test.txt");
?>
echo realpath("test.txt");
?>
O código acima exibirá:
C:Inetpubtestwebtest.txt
Manual Completo PHP Sistema de Arquivos de Referência