English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
A função lstat() pode retornar informações sobre o arquivo ou link simbólico.
array lstat ( string $filename )
Esta função pode coletar informações estatísticas do arquivo ou link simbólico nomeado filename e é semelhante à função stat(), a diferença é que, se o parâmetro filename for um link simbólico, ele retornará o estado do link simbólico, não o estado do arquivo apontado pelo link. Link Simbólico.
<?php print_r(lstat("/PhpProject/sample.txt")); ?>
Resultado de Saída
Array ( [0] => 1245376677 [1] => 1688849860635037 [2] => 33206 [3] => 3 [4] => 0 [5] => 0 [6] => 0 [7] => 49 [8] => 1588769151 [9] => 1590824960 [10] => 1588769151 [11] => -1 [12] => -1 [dev] => 1245376677 [ino] => 1688849860635037 [mode] => 33206 [nlink] => 3 [uid] => 0 [gid] => 0 [rdev] => 0 [size] => 49 [atime] => 1588769151 [mtime] => 1590824960 [ctime] => 1588769151 [blksize] => -1 [blocks] => -1 )PHP Filesystem Referência