April 29th, 2000, 08:45 AM
is there ne way where we can stop the successive iterations more than certain no. of times running on MySQL using PHP..
like if i'm hosting a webserver supporting PHP+MySQL n one of my customer writes a script like below (may be by mistake)
//normal mysql connect statements
$query="select * from members ";
/* here he is performing lot of mysql statements like fetching evry record frm result */
/* and alas he forgets to increment counter here */
then this while loop will never end
is there ne way to stop such kinda things.
(the same thing happened to me when i forgot to increment counter --then there was lot of overhead on my comp)
April 29th, 2000, 08:48 AM
I think you can compile into mysql the amount of processes and cpu time it can take up