Page 1 of 1

To many requests at the same time

Posted: Mon Mar 09, 2009 2:22 pm
by no3dfx
Hi guys. I have a php security issue that is caused by to many requests to the same file. Sometimes it semes like a request only gets prosessed half way thru before a new request trigges the same script again. Since I got alot of mysql_querys at the end of the file that depends on a mysql_query at the beginning. The database get swamped with content that should have been filtered out at the beginning for the code.
Is there any way to force that a request is completely prosessed before a new request is accepted?

Re: To many requests at the same time

Posted: Mon Mar 09, 2009 2:36 pm
by kaisellgren
PHP is not responsible for determining how many concurrent requests there can be.

I am not exactly sure what is your problem. Could you clarify the actual problem?

Re: To many requests at the same time

Posted: Mon Mar 09, 2009 2:41 pm
by John Cartwright
Sounds like you need row locking, so only one instance is accessing the data at any given time. But yea, more info please.