You are here: Re: obtaining the size of a file « PHP Programming Language « IT news, forums, messages
Re: obtaining the size of a file

Posted by Gordon Burditt on 02/26/06 10:18

>I need to obtain the filesize of a file thats not on the same server. As
>filesize() need a realpath and not a url how else can this be done?

Fetch the file and look at the size of it?

How *can* you access this file? Some FTP servers will provide the
file size if you ask them nicely. HTTP doesn't (unless you get the
file too). And if it's dynamic content, it might be a different
size every time you fetch it.

Gordon L. Burditt

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация