FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Send .csv file to browser
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Send .csv file to browser [message #170045 is a reply to message #170043] Thu, 07 October 2010 03:13 Go to previous messageGo to previous message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma:
Senior Member
On 10/6/2010 10:42 PM, Adam Harvey wrote:
> On Wed, 06 Oct 2010 07:19:10 -0400, Jerry Stuckle wrote:
>> I wouldn't create a temp file for it. The code to output it directly to
>> the browser. It's not that hard.
>
> php://temp only creates a real temporary file if the file size goes
> beyond a certain threshold -- by default, 2 megs. Otherwise it behaves
> exactly the same way as php://memory, that is, as an in-memory file-like
> stream.
>
> Adam

Which still doesn't solve the problem of unnecessarily creating a temp file.

It's not needed at all and a waste of system resources.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: file access permission?
Next Topic: Process queue without cron jobs
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 30 11:31:39 GMT 2024

Total time taken to generate the page: 0.04303 seconds