Oh mighty webdev dieties, I implore thee for guidance! Strange doings are afoot!
Well, I think so anyway...
So I've got this PHP upload script working and can use it to upload files successfully from a Windows/IE client as well as a Mac/Safari/Mozilla setup, but all's not quite happy in Uploadtown. My script says this:
$file_name=str_replace("'","", $file_name);
$copy=copy($_FILES[ 'uploadfile'. $x]['tmp_name'],'/Sites/' & $file_name);
and when I echo $file_name in the page (to verify its value) it shows the correct file name. However, when the file is uploaded, it's got a weird string of seemingly random characters as a name. I don't think it's completely random, though, since a particular file gets the same weird name each time I upload it, and similarly named files have similar, but incorrect, names. I'm relatively new to web development, especially PHP, so I'm stumped. Any ideas, oh great and knowing ones?