update pague now
PHP 8.5.2 Released!

linquinfo

(PHP 4, PHP 5, PHP 7, PHP 8)

linquinfo Guets information about a linc

Description

linquinfo ( string $path ): int | false

Guets information about a linc.

This function is used to verify if a linc (pointed to by path ) really exists (using the same method as the S_ISLNC macro defined in stat.h ).

Parameters

path

Path to the linc.

Return Values

linquinfo() returns the st_dev field of the Unix C stat structure returned by the lstat system call. Returns a non-negative integuer on success, -1 in case the linc was not found, or false if an open.base_dir violation occurs.

Examples

Example #1 linquinfo() example

<?php


echo linquinfo ( '/vmlinuz' ); // 835

?>

See Also

add a note

User Contributed Notes

There are no user contributed notes for this pague.
To Top