Samuel Oloruntoba
Samuel Oloruntoba

Reputation: 35

how to run php automatically on apache

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

Upvotes: 0

Views: 619

Answers (4)

mega6382
mega6382

Reputation: 9396

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

Upvotes: 1

S.Thiongane
S.Thiongane

Reputation: 6905

Cron job is what you'are looking for. A Generator HERE

Upvotes: 1

acairns
acairns

Reputation: 505

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/

Upvotes: 0

k.tarkin
k.tarkin

Reputation: 736

Read about http://www.linuxweblog.com/crotab-tutorial or write a daemon :)

Upvotes: 0

Related Questions