Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我知道如何在 Twilio 中发送和接收 SMS。我不知道的是如何构建一个 PHP 服务器应用程序来发送带有问题的 SMS 消息,并且如果在指定的时间量(2 分钟或其他值)内没有收到对该问题的 SMS 响应,将发送短信提醒并重新启动计时器。
谁能帮我吗?
任何时候你想按计划做某事,你都需要使用某种调度程序。PHP 没有内置的(如Ruby 延迟作业 gem),因此您需要编写一个 cron 作业或使用类似Moment的东西。
工作流程将是这样的: