Re: Sending output to the browser

From: Date: Sat, 21 Jan 2006 16:57:46 +0000
Subject: Re: Sending output to the browser
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-22635@lists.php.net to get a copy of this message
Ed Greenberg wrote: > So here I am in the middle of satisfying a quickform based request. I'm > looping through my DB output sending lines of comma separated values > (csv) to the browser. > > 1. Is there anything in pear that can help build csv output from DB > output, or should I just do it with print statements. > > 2. Is there anything in pear that would zip the output up on the way to > the browser so I don't have to get involved with cleaning up temporary > files. > > Thanks, > </edg> Hi Ed, instead of print the csv data line by line you could prepare the whole csv content and then use HTTP_Download for transmitting it to the client. It think zip compression is also available. ( HTTP_Download is really a nice piece of code, imho :-) --Jens

« previous php.pear.general (#22635) next »