NYCPHP Meetup

NYPHP.org

[nycphp-talk] Re: semaphores on Windows

Emmanuel. M. Decarie emm at scriptdigital.com
Tue Mar 11 11:40:08 EST 2003


>1. on selects, get the latest 10 from the database on selects (just in case)
>
>2. and after an insert, find the 10th latest entry
>3. delete all entries older then what u found in step 2
>
>that's of course just one way of doing it.

Yes, this exactly what I want to do. But I was wondering what could 
happens if 2 clients send a text at the same time. I don't think that 
its a problem, but I wanted to check here first.

Cheers
-Emmanuel
-- 
______________________________________________________________________
Emmanuel Décarie / Programmation pour le Web - Programming for the Web
Radio UserLand/Frontier - Perl - PHP - Javascript  <http://scriptdigital.com/>
Blog: <http://blog.scriptdigital.com> - AIM: scriptdigital




More information about the talk mailing list