Of course it's not working. You can't execute a php-skript on the command line. It must be parsed by the php-parser. That means you have to open it in your browser like http://localhost/script.php. XAMPP must be running, but that should be clear...