English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

Basic PHP Tutorial

Advanced PHP Tutorial

PHP & MySQL

PHP Reference Manual

Usage and Examples of PHP linkinfo() Function

PHP Filesystem Reference Manual

The linkinfo() function can return information about hard links and can return the device ID; if it fails, it returns false.

Syntax

int linkinfo ( string $path )

This function is used to verify whether the link indeed exists (pointing to the path).

Online Example

<?php
   echo linkinfo("/PhpProject/sample.txt"); 
?>

Output Result

1245376677
PHP Filesystem Reference Manual