I'm trying to move a file to my server and restrict/remove apostrophes from it.

Here's what I have now:

PHP Code:
move_uploaded_file(str_replace("'"""$_FILES["File"]["tmp_name"]), str_replace("'"""$target)); 
The script uploads a file but adds a slash instead if there's a single quote in the file name. I'd just sooner remove them from the filename before uploading the file.

Any ideas?

Thanks.