Page 1 of 1
On TIME Process
Posted: Mon Feb 20, 2006 5:30 am
by victhour
i have a small project("CMS") that supposed to generate some html's pages.
now my question, how would i authomatically generate those page's base on TIME?
like if it reach'ez to 12 hours it will then execute some script to generates thos pages.
help please...
thanx in advanced.
Posted: Mon Feb 20, 2006 7:58 am
by SKDevelopment
If you have a scrpit which generates those pages, you could use Cron, to run this script at some particular time (or over a time interval). To do this you have to edit the crontab file at you server.
If you type "crontab" or "crontab file format" in Google, you'll get a lot of information how to set a Cron job. E.g.
http://en.wikipedia.org/wiki/Crontab
http://www.adminschoice.com/docs/crontab.htm
http://www.opengroup.org/onlinepubs/007908799/xcu/crontab.html
--
Best Regards,
Sergey Korolev
www.SKDevelopment.com
Posted: Mon Feb 20, 2006 8:37 pm
by victhour
yeah, i heard about this "cron job" thing but, what i want is the idea behind authomating things according to time that would trigger some scripts to execute.
tanx for your attention... hope to here more.
regardz!
Posted: Mon Feb 20, 2006 8:40 pm
by feyd
psst, that's what cron is for.
Posted: Mon Feb 20, 2006 10:45 pm
by victhour
hehe...
im a bit confused. can anyone show me how to set "cron job" like how to include and cexecute my script on a cron file
every 11PM from Monday-Sunday.
tanx again.
Posted: Mon Feb 20, 2006 11:20 pm
by josh
step 1. go to google
step 2. type in set up cron job
step 3. find a good site and follow the instructions there
step 4. put php /path/to/script.php for the script