Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
PHP: linkinfo - Manual
[go: Go Back, main page]

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

search for in the

lstat" width="11" height="7"/> <link
Last updated: Sun, 25 Nov 2007

view this page in

linkinfo

(PHP 4, PHP 5)

linkinfo — リンクに関する情報を取得する

説明

int linkinfo ( string $path )

リンクに関する情報を取得します。

この関数を使用して (path が指している) リンクが実際に存在するかどうかを、 (stat.h で定義されている S_ISLNK マクロと同じ方法で) チェックします。

パラメータ

path

リンクへのパス。

返り値

linkinfo()は、lstat システムコールで返された Unix C 言語の stat 構造体の st_dev フィールドを返します。 0 を返し、エラーの場合に FALSE を返します。

Example#1 linkinfo() の例

<?php

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

?>

注意

注意: この関数は Windows 環境にはまだ実装されていません。



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

lstat" width="11" height="7"/> <link
Last updated: Sun, 25 Nov 2007
 
 
show source | credits | sitemap | contact | advertising | mirror sites