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
mahadzar81
Forum Newbie
Posts: 1 Joined: Sun Aug 29, 2004 4:19 am
Contact:
Post
by mahadzar81 » Sun Aug 29, 2004 4:19 am
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???
feyd
Neighborhood Spidermoddy
Posts: 31559 Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA
Post
by feyd » Sun Aug 29, 2004 10:35 am
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.
Christopher
Site Administrator
Posts: 13596 Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US
Post
by Christopher » Mon Aug 30, 2004 1:56 am
If I understand you correctly, you could check the filesize() of the file before downloading it and keep a running total.
feyd
Neighborhood Spidermoddy
Posts: 31559 Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA
Post
by feyd » Mon Aug 30, 2004 2:33 am
that would only be possible, if you had two concurrent scripts doing this, or you were actually processing the download yourself.