I'm receiving a timeout error when uploading files that are 300 k.
I've checked my php.ini and I can upload a max of 2 M.
I've also used a set_time_limit(20*60), but I still get the error, and safe mode is turned off in my php.ini.
However, when I change it directly in my php.ini everything is ok, but I don't want to do this.
Here's my code
if ($FILES['userfile'] AND $FILES['userfile'] != "none")
{
set_time_limit(20*60);
$total=0;
$handle=opendir($dir);
move_uploaded_file($FILES['userfile']['tmp
name'], $dir."/".$_FILES['userfile']['name']);
}