File: '.$upload);
$now=date('Y-m-dHi');
if(strcmp($now, $date.$time)>0){
Back('Scheduling '.$now.' in the past: '.$date.' '.$time);
}
$nextyear=date('Y-m-dHi', strtotime('+1 year'));
if(strcmp($nextyear, $date.$time)<0){
Back('Scheduling too far into the future: '.$date.' '.$time);
}
if($_FILES['fileToUpload']['error']!=UPLOAD_ERR_OK){
Back('Error uploading the file');
}
if(!move_uploaded_file($_FILES['fileToUpload']['tmp_name'], $file)){
Back('Error moving the file');
}
Back('File is now being encoded to "'.$name.'.mp4"
Scheduling for '.$date.' at '.$hour.':'.$min.'h on '.$target);
?>