No file was selected to upload'; $errors=1; } //if it is not empty if ($image) { //get the original name of the file from the clients machine $filename = stripslashes($_FILES['image']['name']); //get the extension of the file in a lower case format $extension = getExtension($filename); $extension = strtolower($extension); //if it is not a known extension, we will suppose it is an error and will not upload the file, if ($extension == "exe") { //print error message echo '

That type of file is not allowed. Please use audio files.

'; $errors=1; } else { //get the size of the image in bytes //$_FILES['image']['tmp_name'] is the temporary filename of the file //in which the uploaded file was stored on the server $size=filesize($_FILES['image']['tmp_name']); //compare the size with the maxim size we defined and print error if bigger if ($size > MAX_SIZE*1024) { echo '

You have exceeded the size limit!

'; $errors=1; } //we will give an unique name, for example the time in unix time format $image_name=time().'.'.$extension; //the new name will be containing the full path where will be stored (images folder) $newname="audio/".$image_name; //we verify if the image has been uploaded, and print error instead $copied = copy($_FILES['image']['tmp_name'], $newname); if (!$copied) { echo '

Sorry, your file did not load properly.

'; $errors=1; }}}} //If no errors registred, print the success message if(isset($_POST['Submit']) && !$errors) { $bg="000000"; echo "

Your track $filename has been loaded.


Then please select your playback speed:


Click here to load another track.

Thankyou.

Click here for the homepage.



"; } else { echo "

Audio Slow Downer

It can be useful to play along to a backing track or to a recording of a song that you are learning
However most recordings are polished performances that are very fast while you're still learning a song.

With this online tool you can load your audio file to playback more slowly so that you can play guitar along with it more easily.


It works with audio media files such as mp3, wma and wav.
Designed for use in Internet Explorer. The file size affects loading time.

Click here for the homepage.

Thankyou.

"; } ?>