OK, I've been trying lots of things today. So far, the codes winning.
So I've simplified everything. Small form, one celled table... simple response page. Trying to adjust the timeout & fileuplaod size using ini_setup(). Here goes:
Form Script:
ini_set("max_execution_time","60000");
ini_set("upload_max_filesize","8M");
echo "<html>";
echo "<head>";
echo "<title>Untitled Document</title>";
echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\">";
echo "</head>";
echo "<body bgcolor=\"#FFFFFF\" text=\"#000000\">";
echo "<FORM ENCTYPE=\"multipart/form-data\" ACTION=\"./uptest_response.php\" METHOD=\"POST\">";
echo "<INPUT TYPE=\"hidden\" name=\"MAX_FILE_SIZE\" value=\"10000000\">";
echo "<table>";
echo "<tr>";
echo "<td align=\"center\" colspan=\"4\">";
echo "<input name=\"mp3\" type=\"file\">";
echo "</td>";
echo "</tr>";
echo "</table>";
echo "<INPUT TYPE=\"submit\" NAME=\"Submit\" VALUE=\"Update Item!\">";
echo "</FORM>";
echo "</body>";
echo "</html>";
And then the response script:
ini_set("max_execution_time","10000");
ini_set("upload_max_filesize","8M");
if ($mp3!="none"&&$mp3!=""){
copy ($mp3, "../images/twSND_test.mp3");
}
Header("Location: index.php");
It works on small files, but fails on larger files. It either gives a "page cannot be found" error, or doesn't give an error, scoots back to the index & pretends it worked OK. Of course, it didn't.
Any ideas at all? Please? Please?????
Thanks in advance,
Benjamin