running PHP from the command line

syntax: php filename

example1

example2

example3:


These can be run from the command line as

php /homes/ddailey/public_html/php/c1.php happy ever after
php /homes/ddailey/public_html/php/c2.php happy ever after
or
echo hello=happy|php /homes/ddailey/public_html/php/c1.php