regarding keep track file size

Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.

Moderator: General Moderators

Post Reply
mahadzar81
Forum Newbie
Posts: 1
Joined: Sun Aug 29, 2004 4:19 am
Contact:

regarding keep track file size

Post by mahadzar81 »

i want to develop application to generate report to keeptrack how many bytes of file that has successfully download from server..in PHP command..any idea???
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

there is no 1 command to do this. You'd need to build it on your own, generally. That's if you are fetching the file yourself.
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Post by Christopher »

If I understand you correctly, you could check the filesize() of the file before downloading it and keep a running total.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

that would only be possible, if you had two concurrent scripts doing this, or you were actually processing the download yourself.
Post Reply