PHP: ターミナルからPHPを実行してみる

例えば/home/user/ディレクトリに index.phpを作成。

その場所まで移動。

$ cd /home/user/

以下のコマンドで実行されます。

$ php index.php