How To Run a PHP Script? Please explain with example

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.php

You should see the “Hello world!” message printed on your screen.

credit:www.globalguideline.com

Leave a Reply

*

Hire Me
Follow Me!
Search
Most Popular Articles & Pages
Because your vote is Important
Sorry, there are no polls available at the moment.
Categories