Uploader.php

hi everyone, I’ve just gone through the “Uploading Files using FileReference” tutorial and need some help with the php side.

In the tutorial I got this code for the uploader.php file:
<?php
if ($_FILES[‘Filedata’][‘name’]) {
move_uploaded_file($_FILES[‘Filedata’][‘tmp_name’], ‘upload_directory/’ . basename($_FILES[‘Filedata’][‘name’]));
}

I don’t know what to do to make it work though!
I’ve changed a few things just to the address of where I want it uploaded but nothing happens, when visiting the swf on the site it looks like it’s uploaded fine and there was no error but it doesnt.Could someone breakdown the uploader.php for me and tell me what needs to be changed to what please?