Click here to get back home

what does PHP do with temp files uploaded to the server?

 HomeNewsGroups | Search | About
 comp.lang.php    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
what does PHP do with temp files uploaded to the server? Lawrence Krubner 06-16-2008
Get Chitika Premium
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?



Similar ThreadsPosted
Saving Temp Files in Shared Memory November 28, 2005, 7:33 am
user uploaded files -- max # of files per directory? May 27, 2008, 9:24 pm
uploaded files - if they already exist? January 9, 2008, 6:49 am
Calculating CRC32 for uploaded files October 7, 2004, 8:53 am
is_file() returns false for uploaded files? April 18, 2006, 5:54 am
Copy an resized uploaded Image on the server February 4, 2005, 5:57 pm
Copy a resized uploaded Image on the server February 7, 2005, 10:43 am
how to download an uploaded file from server using php scripting? April 26, 2005, 12:38 am
upload file error 3: "The uploaded file was only partially uploaded" January 29, 2007, 6:18 pm
getting "1" in my temp.xml when using fwrite November 11, 2008, 1:17 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap