1110){ $img = thumb_upload($_FILES['file'],'/pds/editor/'.$currMonth,'T','1110'); } else{ $img = thumb_upload($_FILES['file'],'/pds/editor/'.$currMonth,'O',''); } //move_uploaded_file($location, $destination); //echo $_web_path.$_upload;//change this URL echo $_web_path.$img;//change this URL exit; } } else { //echo $message = 'Ooops! Your upload triggered the following error: '.$_FILES['file']['error']; echo "false"; exit; } } ?>