Sending SMS url in my php class is working with the curl library. The problem is that if the url request is delayed (in CURLOPT_CONNECTTIMEOUT_MS or CURLOPT_TIMEOUT_MS), my site will be loaded for the user with a delay. What do you suggest? Should I run SMS url asynchronously? How do I do this? Or put a Schedule on the server? The problem with Schedule is that I want the SMS to be sent exactly when the user runs the script, so I can't set a timeline for Schedule to run in certain time. If the Schedule runing time is short, the database gets involved and I do not like this. In fact, I want to ask php to execute the Schedule after the user runs the script. How do I do this?
question from:https://stackoverflow.com/questions/65869937/sending-url-sms-in-php