PHP Developer Question:
Download Job Interview Questions and Answers PDF
How you can Run a PHP Script?
![PHP Developer Interview Answer PHP Developer Interview Question](https://globalguideline.com/public/images/interview/12.png)
Answer:
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.
<?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.
Download PHP Developer Interview Questions And Answers
PDF
Previous Question | Next Question |
How I can download and Install PHP for Windows? | Which special characters need to escape in Single-Quoted Stings? |