Is it possible that I can make a script that will automatically execute every 24 hours?
Printable View
Is it possible that I can make a script that will automatically execute every 24 hours?
you are going to need to set a cron job for that.
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.
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......
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.
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).:rolleyes:Quote:
Originally Posted by Zach_VB6
Actually, my number is 865-5209