php - Memory leak at .csv download -


is possible creation of rather largge (20mb) .csv download creates memory leak in case user stops download/export before file has been saved on machine?

if yes, how catch , counter problem?

it's possible imagine cleared eventually. either way, httpds lot more efficient @ serving files server side language.

if you're worried, save file (i assume we're talking dynamically generated file) filesystem (somewhere server can see it) , redirect user url.

for security (albeit through obscurity), make filename hideous (eg hash of username , description of file) , make sure people can't directory listing of dir lives in. might make sense date-tag file (eg: filename-year-month-day.ext) can run automatic clean files after 24 hours.


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

html - Instapaper-like algorithm -

c# - How to execute a particular part of code asynchronously in a class -