PDA

Click to See Complete Forum and Search --> : [RESOLVED] Cron Jobs


Zach_VB6
Nov 17th, 2008, 06:33 PM
I need to set up a cron job that will auto execute every 24 hrs...

The script is named daily.php

Please help :)

dclamp
Nov 17th, 2008, 06:59 PM
cron jobs arnt PHP, they are *nix...

This may help http://www.adminschoice.com/docs/crontab.htm

the182guy
Nov 18th, 2008, 02:43 AM
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:

StrangerInBeijing
Nov 19th, 2008, 11:24 AM
If you're on a Windows server then it'll have to be Schedules Tasks.

So you can actually write a php script, and then have scheduler run it whenever you want?
Easy? Never tried. Might wanna. Send out spam to all vbf user's sleeping or sth.

visualAd
Nov 19th, 2008, 04:55 PM
So you can actually write a php script, and then have scheduler run it whenever you want?
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.