CLI

Check PHP is running:

 

php -v

 

Run PHP commands straight from the CLI:

 

php -r php-command

 

Run a PHP script:

 

php -r filename.php

 

PHP script, saved as file-name.php

Leave a Reply