Execute php script only once on live site
<p>I have a script that does an update function live.  I would move it to a cron job, but due to some limitations I'd much rather have it live and called when the page loads.</p>

<p>The issue is that when there is a lot of traffic, it doesn't quite work, because it's using some random and weighted numbers, so if it's hit a bunch of times, the results aren't what we want.</p>

<p>So, question is.  Is there a way to tell how many times a particular script is being accessed? And limit it to only once at a time?</p>

<p>Thank you!</p>
