it's this:
$upfile = "\uploads\".$userfile_name;
your \" is the problem: it's how you note to print a " in a string where you use quotes: and since it isn't an end quote, it leaves the string unclosed -- everything that follows is part of the string down to 'line 11'.
What you meant to say was
"\uploads\".$userfile_name;
but it would be easier and more maintainable to say:
"\uploads\$userfile_name";