tom@459: 0 || $_FILES["config_file"]["error"]) { tom@459: echo "error: file upload failed"; tom@459: } else { tom@459: $id_string = uniqid("aim-o-matic", true); tom@459: $ext = pathinfo($_FILES["audio_file"]["name"], PATHINFO_EXTENSION); tom@459: move_uploaded_file($_FILES["audio_file"]["tmp_name"], "/home/ubuntu/upload/" . $id_string . "." . $ext); tom@459: move_uploaded_file($_FILES["config_file"]["tmp_name"], "/home/ubuntu/upload/" . $id_string . ".config"); tom@459: echo "Results will be avaiable shortly, here:
"; tom@459: echo "" . $id_string . ""; tom@459: } tom@459: } else { tom@459: echo "error: file too large"; tom@459: } tom@459: tom@459: ?>