Jump to content

[SOLVED] timer setup?


corillo181

Recommended Posts

not technically don't shot em down before we understand the case.  PHP has some time functions, first you can set a wait peroid for scripts to stall.  Secondly on a unix based system your server can execute cron jobs of php scripts at a given time, day, month,year,etc etc

Link to comment
https://forums.phpfreaks.com/topic/56650-solved-timer-setup/#findComment-279792
Share on other sites

you talking about DB maintenance like clearing out old users and saying if people haven't activated accounts? give me more details cause your idea will work, your logic is flawed.  Instead of setting it to run at time X you run the code at intervals Y (Y can be daily hourly, weekly) and search for results in the criteria Z.  UNIX servers can do this with cron jobs, most good UNIX hosting companies allow you to run cron jobs of php docs.

Link to comment
https://forums.phpfreaks.com/topic/56650-solved-timer-setup/#findComment-279799
Share on other sites

cooldude i can do that.

 

but i'm not a advance coder, so i was just curious to know if it would be possible to set a code that would work on it's on, with out loading the page...

 

like making a folder with files that you will never check, but the functions inside of them run at  given periods of time.

Link to comment
https://forums.phpfreaks.com/topic/56650-solved-timer-setup/#findComment-279810
Share on other sites

if you are using a hosting company I'd check with them on how to run cron jobs and make a php doc that executes what you want in it. If you ever do any ecommerce paypal uses a similar idea with their IPN where they ping your server's payment processor page when payment is cleared and then you can run your scripts once paypal notifies you of it.  Its simple to do and your hosting company can explain the set up through their web GUI system.  But don't worry about making your php doc different just make a normal doc as if you where going to refresh this page at the given time interval.  You might want to add a logging feature to the doc that sends you an email, or logs in a sql table what it does on each execution and when it executes

Link to comment
https://forums.phpfreaks.com/topic/56650-solved-timer-setup/#findComment-279815
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.