I've written a script that accepts file uploads. It works just fine and dandy with small files, but bigger files are a problem. I'd like for my script to be able to accept 20mb - 30mb files. So far, I've tried including this small chunk of code into my script.
ini_set("upload_max_filesize", "30M");
ini_set("max_execution_time", "1800");
ini_set("max_input time", "1800");
ini_set("post_max_size", "30M");
I've also opened about:config in firefox, and set the network.http.keep-alive.timeout setting to 3000, yet I'm still running into problems. My script just seems to give up after about 5 minutes. Is there some other timeout value I should be setting in php? Perhaps the problem is with apache? If so, what should I change? Should I be changing any other timeout values in my browser? I'm using firefox, but wouldn't mind an IE solution either/aswell.
I forgot to mention that once the file is being uploaded, i'm storing it in a mysql database as a longblob. it seems that if i test my script on my local machine, mysql spits back the error "MySQL server has gone away". Now, I wasn't aware that a DBMS could take holidays, so what's going on here? Incidently, small files work locally, but large, again, do not.