PHP Script To Run in background of application (MYSQL) -


I currently have a stock control system, all of which are working fine. (In PHP and MYSQL)

What I have done is set the "minimum_on_hand" column on the database, which will tell the minimum amount of that particular stock item, before more orders are required . / P>

As soon as one item reaches at least (which is made) can work with the company, I want to throw a warning to it, and then repeat through the database, thereby Sometimes the stock items will decrease

And then, to compile those orders, give the user a minimum of a list

I have only one current idea Every time a new page loads a script Call, but it will cause a huge hit on the database.

Can anyone provide solutions?

  1. chronose
  2. The last time the script was killed, check the last execution time before the next execution.
      if (time () - $ last     

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -