本文整理匯總了PHP中ImageManager::updateFile方法的典型用法代碼示例。如果您正苦於以下問題:PHP ImageManager::updateFile方法的具體用法?PHP ImageManager::updateFile怎麽用?PHP ImageManager::updateFile使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類ImageManager
的用法示例。
在下文中一共展示了ImageManager::updateFile方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: foreach
if ($match) {
array_push($accepted_files_index, $key);
}
}
//if file size too big, upper max upload time
foreach ($_FILES['fileUpload']['size'] as $k => $s) {
if ($s >= $upload_size_limit) {
unset($upload_size_limit, $k);
}
}
foreach ($_FILES['fileUpload']['error'] as $k => $e) {
if ($e != 0) {
unset($upload_size_limit, $e);
}
}
//moveuploadfile
foreach ($_FILES['fileUpload']['tmp_name'] as $k => $n) {
foreach ($accepted_files_index as $ka) {
if (is_uploaded_file($n) && $k == $ka) {
$filename = $moving_url . '/' . $_FILES['fileUpload']['name'][$ka];
move_uploaded_file($n, $filename);
}
}
}
// var_dump($_FILES['fileUpload']['type']);
echo '<p>final state</p>';
foreach ($accepted_files_index as $i) {
echo $_FILES['fileUpload']['name'][$i] . '<br />';
}
$im->updateFile();
}