★ wanayoo — archive 1999 http://fr.php.net/manual/fr/function.fstat.phpNouvelle recherche | Portail wanayoo
PHP  
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links 
search for in the  
previousfseekftellnext
Last updated: Tue, 09 Jul 2002
view the printer friendly version or the printer friendly version with notes or change language to English | Brazilian Portuguese | Chinese | Czech | Dutch | Finnish | German | Hungarian | Italian | Japanese | Korean | Polish | Romanian | Russian | Slovak | Spanish | Swedish | Turkish

fstat

(PHP 4 )

fstat --  Lit les informations sur un fichier à partir d'un pointeur de fichier

Description

array fstat ( int fp)

fstat() rassemble les informations sur le fichier dont on connaît le pointeur fp. fstat() est similaire à la fonction stat(), hormis le fait qu'elle utilise un pointeur de fichier, au lieu d'un nom de fichier.

fstat() retourne un tableau avec les éléments suivants :

  • 1 : volume

  • 2 : inode

  • 3 : mode de protection du inode

  • 4 : nombre de liens

  • 5 : id de l'utilisateur propriétaire

  • 6 : id du groupe propriétaire

  • 7 : type du volume de l'inode *

  • 8 : taille en octets

  • 9 : date du dernier accès

  • 10 : date de la dernière modification

  • 11 : date du dernier changement

  • 12 : taille de bloc du système pour les entrées/sorties(*)

  • 13 : Nombre de blocs alloués

* - uniquement sur les systèmes qui supportent le type st_blksize. Les autres systèmes (i.e. Windows) retournent -1.

Les résultats de fstat() sont mis en cache. Reportez-vous à la fonction clearstatcache() pour plus de détails.

User Contributed Notes
fstat
add a note about notes
jason at inetgurs dot net
15-Nov-2000 02:01

Currently fstat() is indexed by name instead of by number like stat().

Example: $s_array=fstat($fp); print $s_array["mtime"];fclose($fp);

sheran at comtrust dot co dot ae
22-Feb-2001 12:14

On Windows NT the typical array element names for the fstat function are:

dev
ino
mode
nlink
uid
gid
size
atime
mtime
ctime

dave at diggs dot com
15-Jul-2002 10:06

fstat(int fp) doesn't seem to work when using fopen(filename) where filename is a web url.
add a note about notes
previousfseekftellnext
Last updated: Tue, 09 Jul 2002
show source | credits | stats | mirror sites
Copyright © 2001, 2002 The PHP Group
All rights reserved.
This mirror generously provided by: nexen.net
Last updated: Sun Oct 27 04:18:06 2002 CET