Well, I'm really sorry about this one, I forgot to mention that I did all of these things under Windows environment. In Windows, I execute PHP program as command line by using this command under DOS prompt : C:>php myprogram.php3. Perhaps there is equivalent command for Linux environment, maybe there is executable file named php in Linux...just check it out (looking for "x" attribute in that file).
Next step is creating batch file that runs php myprogram.php3, and then I schedule the batch file using task scheduler in Windows.
As far as I know, you could schedule your script using cron in Linux, but I don't know much this thing, try its man instead.
Hope this enlighten you, pal...🙂