0

I'm wondering about how to change the default amount of time before deleting the uploaded files in tmp folder in php.

Is there any way to do that?

Thanks in advance.

ANA
  • 282
  • 2
  • 16
  • This is effectively answered already: http://stackoverflow.com/questions/4653224/php-how-long-to-tmp-files-stay. You can't change temporary file lifetimes; you just need to move them somewhere else. "The file will be deleted from the temporary directory at the end of the request if it has not been moved away or renamed." Different OSs may handle temp files differently. – mjk May 28 '15 at 14:59
  • The temp file lives for the lifetime of the script it was uploaded to. There is no "time limit" beyond that. – Marc B May 28 '15 at 15:04
  • Thanks to you both :) – ANA May 28 '15 at 15:18

0 Answers0