I've never used Unix before (Just linux), so I'm not exactly sure on the cron job. However, I know with Debian (Linux) they have a /etc/crontab file. If you edit that file you will notice a line that looks like: "# m h dom mon dow user command"
That means Minute, Hour, Day of Month, Month, Day of Week, User to run as , Command
So if you put "0 0 1 <user> <command>" at the end of the file it should run at midnight on the first day of the month. I'm not sure if it is the same with Unix.
For the running PHP from the command line. Php.net has a page on it here