Yes, that is possible. just run
If the command line interpreter is not installed, do something like (debian based distros)
#apt-cache search php command line interpreter
which should give you something like
php4-cli - command-line interpreter for the php4 scripting language
php5-cli - command-line interpreter for the php5 scripting language
and install the correct package for your system with
#apt-get install php4-cli
If you don't have a debian based distro, use the corresponding commands with yum. If you do not have yum or apt-get, get it. Just google for "apt-get install" or "yum install".
Then you can do the above.