lstat

It returns information about a file or symbolic link

Example

<?php

echo “<pre>”;

symlink(‘test.php’, ‘test’);

print_r(lstat(‘test’));

?>

Output

Array
(
[0] => 2049
[1] => 673770
[2] => 41471
[3] => 1
[4] => 33
[5] => 33
[6] => 0
[7] => 8
[8] => 1336807250
[9] => 1336807250
[10] => 1336807250
[11] => 4096
[12] => 0
[dev] => 2049
[ino] => 673770
[mode] => 41471
[nlink] => 1
[uid] => 33
[gid] => 33
[rdev] => 0
[size] => 8
[atime] => 1336807250
[mtime] => 1336807250
[ctime] => 1336807250
[blksize] => 4096
[blocks] => 0
)