It appears you've escaped the closing quotes on your $dir=
statement. I don't use php in a Windows environment, so I don't know if you can convert all your \
to /
, but if not, you'll want to escape all the \
:
$dir="C:\\xampp\\htdocs\\php\\";
Or use single quotes, which disables escape sequences:
$dir='C:\xampp\htdocs\php\';
Parse errors often indicate that there is a syntax (or string in this case) error in your code, BEFORE the error actually reported by the parser.