From 0b2543e52abdff6badbc73cc1fe9142a357e5c29 Mon Sep 17 00:00:00 2001 From: Daniel Beckham Date: Mon, 31 Jul 2000 14:41:42 +0000 Subject: [PATCH] added fstat function, man there are a lot of missing function docs. =) git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@29409 c90b9560-bf6c-de11-be94-00142212c4b1 --- functions/filesystem.xml | 47 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/functions/filesystem.xml b/functions/filesystem.xml index d0944e2e87..caf8fe7a07 100644 --- a/functions/filesystem.xml +++ b/functions/filesystem.xml @@ -1280,6 +1280,53 @@ fclose ($fd); + + + fstat + + Get information about a file using an open file pointer. + + + + Description + + + array fstat + int fp + + + + Gathers the statistics of the file opened by the file + pointer fp. This function is similar to the + stat function except that it operates + on an open file pointer instead of a filename. + + + Returns an array with the statistics of the file with the + following elements: + + device + inode + number of links + user id of owner + group id owner + device type if inode device * + size in bytes + time of last access + time of last modification + time of last change + blocksize for filesystem I/O * + number of blocks allocated + + * - only valid on systems supporting the st_blksize type--other + systems (i.e. Windows) return -1 + + The results of this function are cached. See + clearstatcache for more details. + + + + ftell