To many requests at the same time

Discussions of secure PHP coding. Security in software is important, so don't be afraid to ask. And when answering: be anal. Nitpick. No security vulnerability is too small.

Moderator: General Moderators

Post Reply
no3dfx
Forum Newbie
Posts: 1
Joined: Mon Mar 09, 2009 2:18 pm

To many requests at the same time

Post 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?
User avatar
kaisellgren
DevNet Resident
Posts: 1675
Joined: Sat Jan 07, 2006 5:52 am
Location: Lahti, Finland.

Re: To many requests at the same time

Post 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?
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Re: To many requests at the same time

Post 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.
Post Reply