NYCPHP Meetup

NYPHP.org

[nycphp-talk] need help regarding download bar

Tim Lieberman tim_lists at o2group.com
Mon Aug 6 16:29:28 EDT 2007


On Aug 6, 2007, at 1:24 PM, csnyder wrote:

> On 8/6/07, birgunj birgunj <birgunjp0071 at yahoo.com> wrote:
>> Dear All,
>>
>> i want to write script to download file.how do i display download  
>> bar in php
>>  like when download file from any site, it download bar appear, it  
>> show
>> size of file,time etc.
>>
>> can any body help me how to  do this.
>>
>> thanks humayoo
>
> Download is the responsibility of the client. This isn't in PHP's  
> domain.
>

Well, if you're passing the file through a script, it helps to tell  
the client some things by setting proper headers.  Content-type,  
Content-disposition and Content-length, for starters.



More information about the talk mailing list