PHP

PHP: One Instance

125

Suppose you have a script in PHP that you only ever want to only ever run one instance of.

For example:

  • Maintenance script (repair,optimise)
  • Update script (crawler)
  • Server

These types of scripts need only to be launched once, and more could be counter productive or even dangerous.

The simplest way to stop multiple instances is to check to see if the last running script is still running.

(more...)

Counter Script

189

Last year, I released a php script called CounterScript.

It purpose was to generate extended statistics about the visitors to your site.

The script stores all the data about the visitors in a mysql for later analysis.

Check it out: http://sourceforge.net/projects/counterscript/

Go to Top