Hi,
I want my program to run like this:
a)The webmaster adds a PHP script to cron through the CPanel GUI to run at a fixed time, say 10:00 AM every morning.
b)When the script is run by cron, it reads an XML file which was added in by the webmaster and contains a list of programs (other PHP scripts) to run at various times during the day
c)The PHP script adds each of the programs in the XML file to cron and sets them to run at the specified time.
How can I accomplish (c)? In other words, how can my php script tell CPanel to add some commands to be run at specific times during the day.
Any pointers will be appreciated and are most welcome.
-pv
I want my program to run like this:
a)The webmaster adds a PHP script to cron through the CPanel GUI to run at a fixed time, say 10:00 AM every morning.
b)When the script is run by cron, it reads an XML file which was added in by the webmaster and contains a list of programs (other PHP scripts) to run at various times during the day
c)The PHP script adds each of the programs in the XML file to cron and sets them to run at the specified time.
How can I accomplish (c)? In other words, how can my php script tell CPanel to add some commands to be run at specific times during the day.
Any pointers will be appreciated and are most welcome.
-pv