I have a php file upload script script, which works great for smaller files, but for some reason immediately generates a page not found error upon trying to upload any file larger than about 1 meg. I've verified and modified my settings in php.ini and have the following relevant settings:

file_uploads 1
upload_max_filesize 100M
post_max_size 100M

Here's the uploader (feel free to test it out): http://203.185.231.127/upload
login and pass: up

You can see the rest of my php settings here

http://203.185.231.127/phpinfo.php

That the page not found error shows up immediately makes me think it's a problem with Apache. It isnt the script because it works fine elsewhere and yep, it has the set_time_limit(0); at the top and <input type="hidden" name="MAX_FILE_SIZE" value="100097152"> in the upload form.

No one has been able to solve this, even on that site where they compete for points. $50 to anyone who can solve this utter crap.

Thanks in advance. here

    Originally posted by roger.p.c
    even on that site where they compete for points.

    Experts exchange? when did you submit it?

      yeah, that's it... about 5 or 6 weeks ago..
      I'll find the link ...

      Roger

        Am gonna move this to the general help forum...

          Your max_execution_time and max_input_time are both relatively low for people people trying to upload more than 1MB, especially people without a broadband connection.

          I got "Fatal error: Maximum execution time of 30 seconds exceeded in e:\hosting\upload\index.php on line 2" trying to upload a 2.45MB photo..

            I just uploaded 4.66 meg MP3... no problem.... let's see what else I can find thats bigger....

              I would have to agree its the max_input_time, I'm close to 10megs (i think the last one was 8 megs) and it works fine....

              and input is the one that affects POST and UPLOADS..... set_time_limit(0) nullifies the execution time params from php.ini....

              (unless you are in SAFE mode)

                ok, I'm on 1500 ADSL, and I cant upload a 1.5 meg file... so how come you can upload over 4 megs??

                any reccomendations for max_execution_time and max_input_time ?

                Thanks for looking at this guys...

                Roger

                  Heh, I'm on govt Fibre.... aint the greatest in the world... but sometimes it can be suprizingly fast 😉

                  you could try setting them to 0 like set_time_limit().... would be my guess

                    Write a Reply...