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
1 2 3 4 5 6 7 |
#! /bin/php/ <?php phpinfo(); ?> |
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
1 2 3 4 5 6 7 |
#! /bin/php/ <?php phpinfo(); ?> |