I am playing with using flock, a bash command for file locks to prevent two different instances of the code from running more than once.
im using a simple test script from http://www.tuxradar.com/practicalphp/8/11/0 like this <?php $fp = fopen(\"foo.txt\", \"w\");
I want to know whenever any application starts. Is there a windows message开发者_运维知识库 that I can set a hook for to know exactly when that happens?If polling is not a problem you could use one of