Set a global timer in a php web environment
<p>I'm trying to make a function in PHP that counts how many times a function is used by all the users.</p>

<p>If this function has been used, let's say, 30 times, then it should block access for some minutes and then reset the counter to 0. </p>

<p>Is this possible in PHP?</p>
