[nycphp-talk] Where to store tmp files? Where to store generated files?
Matt Juszczak
matt at atopia.net
Sat May 22 20:45:10 EDT 2010
Hi all,
I have a quick question. I know in an application, if you need to create
tmp files, it's probably best to use PHP's temporary file functions to
create unique filenames in the location defined by php.ini/the
environment. Is that correct?
But in the case of needing to create files and store them for longer
periods of time, where do you usually store them? I don't want to create
a directory inside the code base, even if it is ignored by SVN. I also
don't want to create the directory inside a system location, like /var, as
I'd like the application to be kept separate from the system entirely.
Storing the files inside MySQL is also an option, as that would be fairly
portable and not require the use of an NFS mount in the future should the
application grow large.
What do you guys think?
-Matt
More information about the talk
mailing list