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
_______________________________________________
New York PHP Users Group Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk

http://www.nyphp.org/Show-Participation

Reply via email to