For the purposes of testing your PHP installation, create a file called 'hello-derby.php' containing the following lines:
<?php echo "Hello, Apache Derby world!"; ?>
To run a PHP script on Windows operating systems, you can explicitly invoke the PHP interpreter to run hello-derby.php from the command line by invoking the name of the PHP interpreter, followed by the name of the script. The name of the PHP interpreter for CGI applications is normally php.exe, while the name of the PHP interpreter for command line (CLI) applications is normally php-cli.exe. To run our example script as a PHP CLI application, issue the following command:
C:/> php-cli hello-derby.php ...