0

Possible Duplicate:
How to execute PHP code periodically in an automatic way

I am trying to find a way in PHP to load specified script in a specified time, For example if the apache server can execute a specified script, Or mabye there is an option inside the php.ini so i can add files to load in a specified times.

For example:

I want to load the script example.php this file can be found inside the root directory at the location X/Y/example.php, What i want is that the Php engine/Apache Server will execute this script at 12:00, If anyone know a way doing so i will be very thankful, Thank you all and have a nice day.

Community
  • 1
  • 1
Aviel Fedida
  • 4,004
  • 9
  • 54
  • 88

2 Answers2

4

Use cron

Cron is a daemon that executes scheduled commands. Cron is started automatically from /etc/init.d on entering multi-user runlevels. Cron searches its spool area (/var/spool/cron/crontabs) for crontab files (which are named after accounts in /etc/passwd); crontabs found are loaded into memory. Note that crontabs in this directory should not be accessed directly - the crontab command should be used to access and update them.

For more info:
croninfo.html
Wiki

Venu
  • 7,243
  • 4
  • 39
  • 54
0

cronjobs and GET is all you need

Lukas Thanei
  • 169
  • 6