sKunKbad Posted September 15, 2011 Share Posted September 15, 2011 I've been uploading files, but instead of moving the files from /tmp/ to somewhere on the file system, I've been either storing them in the database, or using FTP functions to send them to another server. I'm not specifically deleting the file that is in /tmp/. I tried to find more about garbage collection, or what happens if I don't move or copy the file out of /tmp/, but have been searching for a while with no luck. If I watch my /tmp/ directory, as I do my uploads I don't even see the file in there for a second. So... Is the file only there until the script finishes, and then it gets deleted, or what? Am I making sense? My concern would be having a bunch of .tmp files building up over time. Quote Link to comment https://forums.phpfreaks.com/topic/247182-any-documentation-on-tmp-files-related-to-_files/ Share on other sites More sharing options...
sKunKbad Posted September 15, 2011 Author Share Posted September 15, 2011 Found my answer here: http://php.net/manual/en/features.file-upload.post-method.php Quote Link to comment https://forums.phpfreaks.com/topic/247182-any-documentation-on-tmp-files-related-to-_files/#findComment-1269520 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.