SMSHub | Android SMS Gateway application | SMS library
kandi X-RAY | SMSHub Summary
kandi X-RAY | SMSHub Summary
Android SMS Gateway application for sending and receiving SMS via HTTP API in Kotlin
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of SMSHub
SMSHub Key Features
SMSHub Examples and Code Snippets
Community Discussions
Trending Discussions on SMSHub
QUESTION
I am pretty much at the beginner's level for PHP and cURL. The issue is related to a php CronJob Script which fetches data from a phpmyadmin database relating to customer orders with a particular status (say "0", which means SMS not sent/or No Update Sent to Customer) and updating the shipping details.
Before adding the code to send SMS via API from my SMS Service Provider, the script was working fine which was being used to send emails, regarding shipping updates and following that, updating the database like Order Status and other necessary details to the customer as well as in the system.
The issue arises that if, suppose 100-150 results are fetched as arrays with status='0' the loop only executes once and stops, whereas before adding the SMS code, it used to run for n number rows fetched with status='0'.
I've tried almost all the methods listed on StackOverflow, PHP Manuals, W3C as well as from the developer but still I'm unable to make it work successfully for all the results fetched.
Things I wan't - 1. Select data from a table where status='0'. **✓ 2. Get details relating to the order using mysqli_fetch_array.✓ 3. Send Email as per the format in the code.✓ 4. Update Order History and Order Status.✓ 5. Send an SMS using API as per the prescribed template. (⍻ Not Working)**
...ANSWER
Answered 2017-Feb-27 at 09:46Since the script worked as expected until you added the SMS-sending code, that would imply that there's a problem with the new code.
Extract the SMS-sending code into a file on its own and test that, perhaps from the command line. Don't forget to check for cURL-specific errors (network errors, SSL error, etc.) with curl_error()
and curl_errno()
, like this:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install SMSHub
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page