PHP linkinfo() Function
❮ PHP Filesystem ReferenceExample
Verify if a link really exists:
<?php
echo linkinfo(/rubbish);
?>
Definition and Usage
The linkinfo() function returns information about a hard link, and is used to verify if a link really exists.
Syntax
linkinfo(path)
Parameter Values
Parameter | Description |
---|---|
path | Required. Specifies the path to check |
Technical Details
Return Value: | The device ID returned by lstat system call on success, FALSE or 0 on failure |
---|---|
PHP Version: | 4.0+ |
PHP Changelog: | PHP 5.3.0: Now available on Windows platforms |
❮ PHP Filesystem Reference