7/22/2023 0 Comments Free sms api php![]() I would also suggest pausing for a period of time after each iteration of the loop to prevent sending the requests too fast. Remember to change the hardcoded POST data so that is uses the next mobile number and name, instead of sending to the same number each time. ![]() If not, you will have to loop the second request so that there is one request per mobile number. If the service allows you to input multiple mobile numbers (for example comma separated) then that would be most optimal because it would only require the two requests to send to all mobile numbers. The second request is able to use the session created by the first request because of the cookiejar.Ģ) Secondly,how can I modify it to optimally send sms to multiple people The second request is the one that actually triggers the send, it takes the mobile number and other details as POST data. The first request signs in with your username and password, and it stores the session cookies for the next request. The code is sending two HTTP requests to the service. There's is a similar question asked but answer accepted is off the topic and it uses a different gateway SMS sending through free gatewayġ) I need help to understand what is actually being done. Secondly,how can I modify it to optimally send sms to multiple people(like will it be optimal to put it in a loop) without wasting data or unnecessary page loads.ģ.After sending each SMS ,it loads homepage.So won't it try to load the homepage before sending SMS.If yes,can I remove the starred(** **) line to prevent this.I need help to understand what is actually being done.After searching for hours, I found the following working (I tested it) script which makes use of as sms gateway but it sends a single message at a time and then loads the homepage. I am trying to develop a PHP based application to send sms across India to contacts picked from the database.
0 Comments
Leave a Reply. |