Jump to content

Making a php script that will run at certain times/after certain amount of time


Flames

Recommended Posts

I want a way to make a script that will automatically run at certain times accessing a MySQL DB e.g. on this forum a script runs every hour.

 

I want it so that if you navigate to the file the script won't run but when it  hits 12:00 it will run without anyone having to open the file and then again at 18:00 to run the file but slightly differently e.g. at 12:00 you get £100 and at 18:00 you get £50.

I also want a method that will make a script run after 15 minutes of inactivity so it starts an internal php timer every time you load a page if the timer gets to 15 minutes (900 seconds) it will access a DB and log a user out and close the session.

 

Anyway of doing this is much appreciated.

Flames

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.