How To Run A PHP Script

  • 2 Mar, 2012

    A standard alone PHP script can be executed directly with the PHP Command Line Interface (CLI). Write the following script in a file called hello.php:<?php echo "Hello world!"; ?>This script can be executed by CLI interface like this:phpphp hello.phpYou should see the "Hello world!" message printed on your screen.

    Comments Received:
    Please give your suggestions and feedback:

2009-2016 All rights reserved.