Hey all, I'm having a problem with a multiple file upload. Specifically, I'm trying to loop through the resulting array, and I keep timing out. What am I doing wrong?
here's my code:
$path = realpath("../../images/eyecandy");
print($HTTP_POST_FILES["large"]["name"][0] . " -- " .count($HTTP_POST_FILES["large"]["name"]));
for($i=0;count($HTTP_POST_FILES["large"]["name"]);$i++){
//i've also tried the below
//for($i=0;count($HTTP_POST_FILES["large"]);$i++) {
//for($i=0;count($HTTP_POST_FILES);$i++) {
print($i);
//$fn =$HTTP_POST_FILES["large"]["name"][$i];
//print($fn . "<br />");
//flush();
//move_uploaded_file($HTTP_POST_FILES["large"][$i],"$path/" .$HTTP_POST_FILES["thumb"][$i]);
} //end for