Jump to content

[SOLVED] PHP-based timer system...even possible?


mem0ri

Recommended Posts

Yes there is, but probably you should look into "cron" instead.  cron can call a script at specific times throughout the day.

 

What you described is commonly called a "daemon" .. it's not common to write one in php but it's certainly possible.

Link to comment
Share on other sites

Thank you...I ended up taking a look at cron and my server 'crontabs' per your suggestion.

 

I think my next query along this line needs to be...if I call a PHP page that includes the "CONSTANTS" page and change a constant...will that changed constant persist?  I believe it should...I guess the best way is to try it out.  Thank you.

Link to comment
Share on other sites

I don't know what you mean by the "CONSTANTS" page.  I'm also not sure what you mean by "call a PHP page" :)

 

Can you show your code (if you have some).

 

If you are using require() or include() to use a php file which defines some constants, then those constants will only change when the file is edited.

Link to comment
Share on other sites

Yes, sorry...I was being vague...probably had to do with having been up and in front of code for about 20 hours straight.

 

Anyway...I did mean altering a value from within a page that defines constants.

 

Thank you for the answers...going to mark this topic solved.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.