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
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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.