NYCPHP Meetup

NYPHP.org

[nycphp-talk] need help regarding download bar

birgunj birgunj birgunjp0071 at yahoo.com
Tue Aug 7 02:17:57 EDT 2007


thanks alto for replying. but how to set header for this to display correct contents.
   
  humayoo

Tim Lieberman <tim_lists at o2group.com> wrote:
  
On Aug 6, 2007, at 1:24 PM, csnyder wrote:

> On 8/6/07, birgunj birgunj 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.
_______________________________________________
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk

NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com

Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php


       
---------------------------------
Fussy? Opinionated? Impossible to please? Perfect.  Join Yahoo!'s user panel and lay it on us.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20070806/9114d44b/attachment.html>


More information about the talk mailing list