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

search for in the

SplFileInfo::getType> <SplFileInfo::getRealPath
[edit] Last updated: Fri, 24 May 2013

view this page in

SplFileInfo::getSize

(PHP 5 >= 5.1.2)

SplFileInfo::getSizeLit la taille d'un fichier

Description

public int SplFileInfo::getSize ( void )

Retourne la taille d'un fichier, en octets.

Liste de paramètres

Cette fonction ne contient aucun paramètre.

Valeurs de retour

La taille du fichier, en octets.

Erreurs / Exceptions

Une exception RuntimeException sera émise si le fichier n'existe pas, ou si une erreur survient.

Voir aussi



add a note add a note User Contributed Notes SplFileInfo::getSize - [1 notes]
up
0
franssen dot roland at gmail dot com
2 years ago
Seems to return FALSE if file does not exists... (PHP 5.3.4)

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