Forum Moderators: coopster

Message Too Old, No Replies

Run script at same time automatically

         

SlowMove

9:23 am on Jul 31, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



This may be a stupid question, but is there some way to have a PHP script on a server run automatically at the same time every day?

ppg

10:14 am on Jul 31, 2003 (gmt 0)

10+ Year Member



the usual way would be with a cron job set up on your server - what OS are you using?

SlowMove

10:46 am on Jul 31, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



>>what OS are you using?

Linux at iPowerWeb

ppg

11:14 am on Jul 31, 2003 (gmt 0)

10+ Year Member



Well, given Linux I would do it with a cron job but I'm more used to in-house web servers.

I had a look around their site, sadly it doesn't look good for you. From their help pages:

"If you are need to schedule scripts to run at specific times as in creating server side cron jobs, your iPowerWeb account will not be able to support this feature."

They need to work on their grammar too!

I don't know another way of doing this, perhaps someone else can pitch in?

SlowMove

12:45 pm on Jul 31, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Thanks for checking it out.
I had one other idea. Are there any sites(not necessarily Web hosts) that could be used to hit my site at a scheduled time every day? Any kind of site would do just so it would visit www.site.com/script.php

vincevincevince

2:18 pm on Jul 31, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



what OS do you use at home?

if ("windows")
- make a local .htm file with an <iframe src= to your script
- then use "task scheduler" (control panel) to make that launch daily

if ("*nix")
- run your own cron job in pretty much the same way :-)