The line that has the error is this one:
<?xml version="1.0" encoding="UTF-8"?>
There is nothing physically wrong with it as far as I can see, yet I get this error:
Parse error: syntax error, unexpected T_STRING in /directory/listing/upload.php on line 12
Sorry, let me clarify, I'm not trying to echo it or print it out, I'm trying to set the XML version.
There is no need for the upload.php code as it all works fine, it's just this one line.
Also, (yes I know, w3schools which I'm only using as an EXAMPLE) w3chools has it set out like this to set it?