I wanted to know if there was a way to configure Apache to automatically run a php script at a particular time without need for me being online, as long as my server is active
3
-
2I'll google for you :) google.com/search?q=cron+job+phppiddl0r– piddl0r2013-10-09 11:17:37 +00:00Commented Oct 9, 2013 at 11:17
-
There isn't. What you need to do is to set up a cron job that will call Apache, e.g. using lynx, or directly your script.LSerni– LSerni2013-10-09 11:18:02 +00:00Commented Oct 9, 2013 at 11:18
-
you mean a cron job? Cron. For Linux servers Cron Linux Apachevaibhavmande– vaibhavmande2013-10-09 11:18:08 +00:00Commented Oct 9, 2013 at 11:18
Add a comment
|
4 Answers
A Cron Job is what you are looking for, mostly your hosting provide you with this service, if you are using a dedicated server, you can generate a cron here http://www.generateit.net/cron-job/ or here is a little tutorial for it: http://www.linuxweblog.com/crotab-tutorial
Comments
A cron is what you are looking for.
If you server is Linux, you can add an entry to your chrontab: http://www.tecmint.com/11-cron-scheduling-task-examples-in-linux/