Curriculum
Course: PHP Basic
Login

Curriculum

PHP Basic

PHP Install

0/1

PHP Casting

0/1

PHP Constants

0/1

PHP Magic Constants

0/1

PHP Operators

0/1

PHP Reference

0/276
Text lesson

linkinfo()

Example

Check to see if a link is legitimate:

<?php
echo linkinfo(/rubbish);
?>

Definition and Usage

The purpose of the linkinfo() method is to confirm the existence of a hard link by returning its details.

Syntax

linkinfo(path)

Parameter Values

 

Parameter

Description

path

Essential. details the route to be checked.

Technical Details

Return Value:

When successful, the device ID is returned by the lstat system function; otherwise, it returns FALSE or 0.

PHP Version:

4.0+

PHP Changelog:

PHP 5.3.0 is now accessible on Windows-based systems.