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

search for in the

SplFileInfo::getType> <SplFileInfo::getRealPath
Last updated: Fri, 20 May 2011

view this page in

SplFileInfo::getSize

(PHP 5 >= 5.1.2)

SplFileInfo::getSizeGets file size

Descripción

public int SplFileInfo::getSize ( void )

Returns the filesize in bytes for the file referenced.

Parámetros

Esta función no tiene parámetros.

Valores devueltos

The filesize in bytes.

Errores/Excepciones

A RuntimeException will be thrown if the file does not exist or an error occurs.

Ver también



add a note add a note User Contributed Notes SplFileInfo::getSize
franssen dot roland at gmail dot com 30-Apr-2011 12:59
Seems to return FALSE if file does not exists... (PHP 5.3.4)

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