How do i execute a php script in cron jobs.
Usually you give unix commands for a cron job, but how do i run a php file in a cron job.
I'll explain this in little detail.
I am developing a website which sends mail to its subscribers every Sunday night by 2400 hrs and also do some processing with the data in the table. Hence the php script is too big. I want to do different jobs at different time intervals, hence need for a cron job. The problem i face is in executing the php files with the codes.
I have the files with .php extension. I think i'll need to write a shell script. Do let me know of how to do this?
Also let me know whether it is necessary to have this script file at a particulat folder say /etc etc.
Thanks