how to lock a block of php codes



Hi,

How to avoid one php page be called by 2 at the same time?
How to lock a block of codes in php?

something like

mutex.Lock
//...............
One service one time
//................
mutex.Unlock

Any way to do this?

Thank you,
Kelvin

.



Relevant Pages

  • Re: [PHP] Page breaks and printing?
    ... There isn't, really, because it up to the local browser and printer ... % Is it possible with just PHP or maybe PHP + CSS? ... I believe that if you make a you can avoid a page break or maybe ... common denominator ...
    (php.general)
  • Re: how to lock a block of php codes
    ... The php page is actually called by PayPal IPN. ... So I want to find a method to avoid this. ... I generally use a text file as a lock so: ...
    (alt.php)
  • Re: PHPSESSID , googlebot and robot.txt
    ... Can you avoid that googlebot indexes PHPSESSID pages? ... PHP uses sessions or cookies. ...
    (alt.internet.search-engines)
  • Re: FCk Editor problem
    ... How to avoid this conversion? ... How does this have anything to do with PHP? ... Try asking the people who wrote FCK. ...
    (comp.lang.php)
  • Re: how to lock a block of php codes
    ... The php page is actually called by PayPal IPN. ... So I want to find a method to avoid this. ... How to lock a block of codes in php? ...
    (alt.php)