|
Posted by Lawrence Krubner on June 16, 2008, 1:38 pm
Please log in for more thread options
Imagine I have a site where users can upload files. Now imagine we are
enfocing a 100 meg limit on each account. The user uploads a file, the
code checks to see if they are already over their limit. If not, the PHP
upload code precedes as normal and I use move_uploaded_file() to copy
the temp file to its permanent home. But if the user is over their
limit, then I do not use move_uploaded_file(). I simply notify the user
that they are over their limit and not allowed to upload any more files.
Who is responsible for disposing of the temp files, me or PHP? I'm
assuming that either PHP or the server deletes these files after a
certain amount of time. Is that correct?
|