How to apply static class in php
<p>I am java and php programmer.
In java i can use static class/method so that anyone can use the same one time created class during run-time.</p>

<p>But for php how to do it since it is script based and only run while we refreshing the page?</p>

<p>My main objective is, I want to use syncronized class/method so that it wont clash while executing the PHP...</p>

<p>Need your help to give input. 
Thanks</p>

<p><strong>Update:</strong></p>

<ol>
<li>I am doing portal like multi level marketing(mlm) </li>
<li>Once register a member, we should pay bonus to the uplines </li>
<li>I don't want immidiately calculate the bonus because it is risky and could take some time to finish, so is is better just to register the member and show successfull. </li>
<li>My idea is, after registration, just invoke another class to run bonus with syncronized method so that the bonus calculation will not disturb by another registration.</li>
</ol>
