جرب :
كود PHP:
return $name;
}
function submit_bulk()
{
if ($_FILES['Wallpapers']['name'] == NULL && $_POST['url'] == NULL) {
return "You must upload or enter a .zip file";
}
$rand = rand(10000000, 99999999);
exec('mkdir ../images/wallpapers/'.$rand);
$uploaddir = '../images/wallpapers/'.$rand;
if ($_FILES['Wallpapers']['name'] != NULL) {
$name = $_FILES['Wallpapers']['name'];
$file = $uploaddir.$name;
move_uploaded_file($_FILES['Wallpapers']['tmp_name'], $file);
} else {
$name=rand(10000,1000000).'upload.zip';
$ch = curl_init();
$timeout = 5; // set to zero for no timeout
curl_setopt ($ch, CURLOPT_URL, $_POST['url']);
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
$tString = curl_exec($ch);
curl_close($ch);
if (!$tString) {
return "Could not open URL";
}
if (!$success=afile_put_contents($uploaddir.'/'.$name, $tString)) {
return "Could not write .zip file";
}
$file=$uploaddir.'/'.$name;
}
exec("chmod 777 $file");
exec("unzip -d $uploaddir $file");
exec("rm $file");
$directory = opendir($uploaddir);
اعذرني والله مشغول هالايام عشان هيك ما بتواجد كثير او بتفرغ 
تحياتي، أشرف السمهوري