how to fix gateway timeout error in php???

Posted by developer on Stack Overflow See other posts from Stack Overflow or by developer
Published on 2010-06-15T07:26:11Z Indexed on 2010/06/15 8:32 UTC
Read the original article Hit count: 414

Filed under:
|
|
|

Iam having a php file that sends text messages on mobile to all the users that i have in my database's particular table. Now the entries are like 2000 or so in number and this number will keep on increasing. On my page there is a small form that selects a list of the users to whom message is to be sent from a drop down and then user writes the text to be sent in a textarea and then on clicking the submit button php script stars sending the messages to mobile numbers.

Now while trying to send messages my browser has shown gateway timeout error but the script kept on running and messages are sent to the mobiles but not once but 6 times. I checked my script my query and all the code is correct.This all happened coz of that gateway timeout.

Now does this gateway timeout kepts the script running again and again till the browser is not closed?? is this was the reason that a single message was sent 6 times to mobile numbers?? I mean how can i escape my file from getting this gateway error so that one message is sent only one time to a number??

© Stack Overflow or respective owner

Related posts about php

Related posts about timeout