lstat
-
The
lstatfunction in PHP returns an associative array with information about a file or a symbolic link. It is the same as PHP’sstat, but it does not follow the last symbolic link. Instead, it reports on the link itself.PHP
$stat = lstat('/path/to/foobar'); print $stat['ino']; //=> 16793883
Ruby’s
File.lstatmethod will return aFile::Statinstance with the same information.Ruby
stat = File.lstat('/path/to/foobar') p stat.ino #=> 16793883
see also
Looking for Rails or PHP web application development, integration, and training?
Rails for PHP is brought to you by Maintainable Software. Get custom web applications and personalized training from the authors of the book and website.

