I need to set up a cron job that will auto execute every 24 hrs...
The script is named daily.php
Please help :)
Printable View
I need to set up a cron job that will auto execute every 24 hrs...
The script is named daily.php
Please help :)
cron jobs arnt PHP, they are *nix...
This may help http://www.adminschoice.com/docs/crontab.htm
Hi Zach,
What's your hosting setup? Shared? Dedicated server? Free hosting?
Unless you have a dedicated server your probably not going to have access to a shell to access the crontab directly.
If you're on a shared host then they may give you support for cronjobs via the control panel, they usually have a nice UI to setup cronjobs.
If you're on a Windows server then it'll have to be Schedules Tasks.
Hope this helps:thumb:
So you can actually write a php script, and then have scheduler run it whenever you want?Quote:
Originally Posted by the182guy
Easy? Never tried. Might wanna. Send out spam to all vbf user's sleeping or sth.
Yes, a PHP script can be executed like a batch script. It is actually more powerful than a batch script but lacks the Windows integration you would get with Windows Script host, however.Quote:
Originally Posted by StrangerInBeijing