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: Fri, 05 Sep 2008

view this page in

linkinfo

(PHP 4, PHP 5)

linkinfoRenvoie les informations d'un lien

Description

int linkinfo ( string $path )

Renvoie les informations d'un lien.

Cette fonction est utilisée pour vérifier si un lien (pointé par le chemin path ) existe réellement (en utilisant la même méthode que la macro S_ISLNK, définie dans stat.h).

Liste de paramètres

path

Chemin vers le lien.

Valeurs de retour

linkinfo() retourne le champ st_dev de la structure stat Unix C, retourné par l'appel système lstat. Si une erreur survient, la fonction retournera 0 ou FALSE.

Exemples

Exemple #1 Exemple avec linkinfo()

<?php

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

?>

Notes

Note: Cette fonction n'est pas implémentée sous Windows.



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

lstat> <link
Last updated: Fri, 05 Sep 2008
 
 
show source | credits | sitemap | contact | advertising | mirror sites