PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
try this:
A) <input type="file" name="localfile[]"> (if you are using a loop to create the lines)
B) $_FILES['localfile']['name'][$idx] // put the counter at the end of the variable
oh just one more thing... at the end of it all i do a unlink($_FILE['file']['tmp_name']); but i get an error...what gives? are temp files automatically delete after a move_uploaded_file()?
yup - move_uploaded_file actually moves the file - it doesn't copy it and move the copy (unlike copy).
it will only work on files uploaded through the $_FILES array as well, thus is more secure than copy+unlink.