|
-
Nov 1st, 2008, 02:09 PM
#1
Thread Starter
Frenzied Member
[RESOLVED] Auto - Executing a PHP Script every 24 hours?
Is it possible that I can make a script that will automatically execute every 24 hours?
-
Nov 1st, 2008, 02:13 PM
#2
Re: Auto - Executing a PHP Script every 24 hours?
you are going to need to set a cron job for that.
My usual boring signature: Something
-
Nov 2nd, 2008, 08:03 AM
#3
Re: Auto - Executing a PHP Script every 24 hours?
Cronjobs are only available on UNIX servers. If your using a Windows server then you could use its scheduled tasks.
It's also worth noting that free web hosts don't usually give you access to the crontab. Paid shared hosts might give you access to it via a web based control panel - so don't go looking for somewhere to type in crontab commands unless you have access to a shell on the server e.g. via SSH.
-
Nov 6th, 2008, 09:39 AM
#4
Frenzied Member
Re: Auto - Executing a PHP Script every 24 hours?
Wanted to do this before (i know, guess sounds stupid)
Run a script when the site is opened, see what is the time, and if it's time and the script you want to run were not executed yet (database value?), then run it.
Can always run it with Ajax, so the user wont even know......
-
Nov 6th, 2008, 02:48 PM
#5
Re: Auto - Executing a PHP Script every 24 hours?
the problem with that is that if no one goes to you site at the time that you specified, then the script wont be run at all.
My usual boring signature: Something
-
Nov 6th, 2008, 07:10 PM
#6
New Member
Re: Auto - Executing a PHP Script every 24 hours?
 Originally Posted by Zach_VB6
Is it possible that I can make a script that will automatically execute every 24 hours?
If you do regularly have your PC open, and you don't want to be bothered by manually visiting the page (PHP script) yourself, then create an invisible mini-app that has web browser controls (like in VB) that is set to visit that specific page at a specified time (probably with timer/threading control).
-
Nov 6th, 2008, 07:35 PM
#7
Re: Auto - Executing a PHP Script every 24 hours?
Actually, my number is 865-5209
My usual boring signature: Something
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|