0

Can anyone help I need to run a php file or function on a specific time (atmost predifined). So i can not find any way to do this , i think about server variable. This has to be done without browser i mean there is no chance that browser run at that time it may be or may not. I hope you understand the problem pls give solution Thanks.

Neeraj
  • 3
  • 1
  • 3
  • possible duplicate of [PHP script to execute at certain times](http://stackoverflow.com/questions/1981036/php-script-to-execute-at-certain-times) – user2284570 Nov 11 '13 at 21:38

2 Answers2

3

You need to use cron (on *nix) or scheduled tasks (windows)

http://en.wikipedia.org/wiki/Cron

Most web host software (such as cPanel) allows you to edit the crontab (the list of scheduled tasks) via the web interface

Adam Hopkinson
  • 28,281
  • 7
  • 65
  • 99
0

they are called cron jobs

Run a code after specific time in php

Community
  • 1
  • 1
Praveen Prasad
  • 31,561
  • 18
  • 73
  • 106