Running a PHP Script

Q

How To Run a PHP Script?

✍: FYIcenter.com

A

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:

\php\php hello.php

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

 

Understanding PHP String Literals and Operations

PHP Configuration Setting File

Downloading and Installing PHP

⇑⇑ PHP Tutorials

2016-10-13, 2001🔥, 0💬