★ wanayoo — archive 1999 http://fr.php.net/manual/zh/function.linkinfo.phpNouvelle recherche | Portail wanayoo
downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

lstat> <link
Last updated: Fri, 25 Feb 2011

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.

 
show source | credits | sitemap | contact | advertising | mirror sites