Uploading files

I’m trying to upoload a file to a php script. when this is done the filename needs to be logged in the database.
but I can’t seem to save the file, I get a securty warning stating I do not have permission to save the file. Is this because op the fact that I have the 10 dollar program, or am I doing something wrong?
I’m using the following script:

copy($_FILES[‘NewsImage’][‘tmp_name’], $glued_filename);

where glued_filename is the name the file is to be saved as.