you first of all need the cgi version of php
make a phpinfo.php page with this in it
<? phpinfo(); ?>
and view it in your browser, look at the line that says
Server API // like third down or so
if it says Apache, you can't run command line, you need to get the cgi version, and you can have both installed btw
if it says CGI something, then post back and someone can help you at that point