Jump to content

Temp Folder


The Little Guy

Recommended Posts

When you upload a file via PHP, it goes into a temp folder.

 

If I don't use the function "move_uploaded_file", and perform some other type of operation on it, will PHP, or my server automatically delete it after a period of time?

 

Basically how do I get files to be gone from the temp folder (If they don't remove themselves)?

Link to comment
https://forums.phpfreaks.com/topic/127177-temp-folder/
Share on other sites

Another thing, since I want users to upload videos, would it be best to have the videos uploaded and converted to FLV ASAP, and moved to a permanent location, or uploaded to a "non-flushed" directory, then have a cron job that runs every 10 minutes to check for new uploads, which would then convert them to FLV then delete the original video?

Link to comment
https://forums.phpfreaks.com/topic/127177-temp-folder/#findComment-657871
Share on other sites

If your CPU is inactive during those 10 minutes (inactive meaning not maxed out in this context), why not use it?  If you do it every 10 minutes you run the risk of it freezing your server or it overlapping with another run later.

 

 

Then again, if it maxes the CPU out when you're uploading as your processing, you're going to have problems too....

Link to comment
https://forums.phpfreaks.com/topic/127177-temp-folder/#findComment-657895
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.