PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

lstat> <link
Last updated: Mon, 26 Nov 2007

view this page in

linkinfo

(PHP 4, PHP 5)

linkinfo — 获取一个连接的信息

说明

int linkinfo ( string $path )

linkinfo() 返回 lstat 系统调用所返回的 UNIX C stat 结构中的 st_dev 字段。本函数用来验证一个连接(由 path 所指向的)是否确实存在(使用 stat.h 中的 S_ISLNK 宏同样的方法)。如果出错则返回 0 或 FALSE

Example#1 linkinfo() 例子

<?php

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

?>

Note: 本函数未在 Windows 平台下实现。

参见 symlink()link()readlink()



add a note add a note User Contributed Notes
linkinfo
There are no user contributed notes for this page.

lstat> <link
Last updated: Mon, 26 Nov 2007
 
 
show source | credits | sitemap | contact | advertising | mirror sites