linkinfo
linkinfo
Gets information about a link
**linkinfo** string $path
Gets information about a link.
This function is used to verify if a link (pointed to by
) really exists (using the same method as the
S_ISLNK macro defined in ).
path
pathPath to the link.
returns the field
of the Unix C stat structure returned by the
system call. Returns a non-negative integer on success, -1 in case the link was not found,
or false if an open.base_dir violation occurs.
linkinfo``st_dev``lstat
Voorbeeld: example
<?php
echo linkinfo('/vmlinuz'); // 835
?>
symlink``link``readlink