I am hosted with 1and1.com, and I have setup my files to be parsed with php5 using .htaccess.
But that only works in apache, and not in command line, wh
If you can execute PHP scripts directly in the shell like:
$ script.php
you can specify the binary that will execute the script in it's first line:
#!/usr/bin/php
That line is called shebang. The line might differ on your system, you need to know the full file system path of the PHP CLI binary you want to use for that script.
If you execute that file in the shell, the specified binary will be used. Same for cron.
If you execute that file via your webserver, PHP will drop that line silently.
See as well: Features: Using PHP from the command line