Remote File uploads

From: Date: Thu, 02 Nov 2000 08:54:29 +0000
Subject: Remote File uploads
Groups: php.general 
Request: Send a blank email to php-general+get-23353@lists.php.net to get a copy of this message
Hello all, I am running PHP-4.0.3p1 using Apache 1.3.12 on Suse Linux 6.4 On my website I have a facility that allows people to upload up to 4 pictures. When I set up the script to handle only one picture, there is no problem. However, when more than one picture is uploaded, apache dumps core. Basically the code looks like this: <? if (!isset($action)){ echo "form action=".$PHP_SELF."?action=save method=post enctype=multipart/form-data>"; echo "<input type=file name=pic[]><br>"; echo "<input type=file name=pic[]><br>"; echo "<input type=submit value=Upload>"; echo "</form>"; } else{ for ($i = 0; $i < sizeof($pic); $i++) copy($pic[$i], "incoming/file".$i.".txt")); } ?>

« previous php.general (#23353) next »