Page 1 of 1

Why would a file upload time out...

Posted: Thu May 25, 2006 1:50 pm
by Luke
I have a php program that times out or something weird when I try to upload a file any larger than like a meg. I checked with my host that the upload-max-file-size is 16MB, the max size in the php file is 150000000000 Bytes... and yet if the file is larger than like a meg, it stops here:

Code: Select all

// check if no file selected.
            If (!IS_UPLOADED_FILE($_FILES['filetoupload']['tmp_name'])) {
                Echo "<tr><td class='content'><strong>Error: Please select a file to upload!. </strong></td></tr>";
                $ERROR_FUNCTION = true;

Posted: Thu May 25, 2006 1:56 pm
by Burrito
check the max post size.

also if indeed it is timing out, you might try using set_time_limit()

Posted: Thu May 25, 2006 1:59 pm
by Luke
how come IS_UPLOADED_FILE is upper case? Does case not matter in php? (This obviously is not code written by me)

Posted: Thu May 25, 2006 2:54 pm
by Oren
The Ninja Space Goat wrote:how come IS_UPLOADED_FILE is upper case? Does case not matter in php? (This obviously is not code written by me)
Function names are case insensitive but variable names aren't.

Posted: Thu May 25, 2006 3:33 pm
by Luke
completely news to me... haha wow!