faqts : Computers : Programming : Languages : PHP : Common Problems : Files

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

4 of 4 people (100%) answered Yes
Recently 3 of 3 people (100%) answered Yes

Entry

Why don't the size of gif and jpg show up when using filesize()?

Mar 23rd, 2001 12:20
Ben Udall, T R,


The filesize() function should work with all files, despite their 
content or name. You might want to check that you have the path and/or 
filenames correct.
One other thing to note, the filesize function only works with local 
files.  filesize("http://www.somedomain.com/bob.gif") won't work.