[Solved] create two thumbnails instead of one based on code
[ad_1] Can you just call the function twice like in this example below? if (!empty($_FILES)) { $tempFile = $_FILES[‘Filedata’][‘tmp_name’]; $targetPath = $_SERVER[‘DOCUMENT_ROOT’] . $_REQUEST[‘folder’] . “https://stackoverflow.com/”; $targetPath = str_replace(‘//’, “https://stackoverflow.com/”, $targetPath); $targetFile = $targetPath . basename($_FILES[‘Filedata’][‘name’], ‘.’ . $ext) . ‘_s.’; $newTargetFile = // define whatever you want to call your second copy of thumbnail … Read more