class.upload.php is a powerful and mature PHP class to manage uploaded files, and manipulate images in many ways. The script is available under a GPL license.
more info about the class
$files = array(); foreach ($_FILES['my_field'] as $k => $l) { foreach ($l as $i => $v) { if (!array_key_exists($i, $files)) $files[$i] = array(); $files[$i][$k] = $v; } }
I thought I checked the FAQ...
Otherwise the code :
Seems to be buggy... Executing it always give me an error on the line:
foreach ($l as $i => $v) {
The server is running PHP version 5.2
Do you have any idea?
Thanks