what would be exact command to execute automatically an php script by placing it in crontab i am using php3 as well as php4
Search the forum, this has been asked and answered a few times.
You need PHP as a binary, and call the file like this: php -q your_script.php
(there are other ways, but this is the easiest I think)