![]() Note that Toll-Free numbers can only receive SMS and do not support MMS messages. The first step to receiving text messages with PHP is to activate a number with SMS Arc. We provide a simple to use platform that will let you get started in seconds. In order to begin receiving SMS with PHP using the script provided above, you need to configure your number with SMS Arc. Selecting a PHP Endpoint for Receiving SMS In order to get started, you need to let SMS Arc know your endpoint URL when managing your phone numbers. When an SMS is received by PHP, you can handle the data and do anything you want with it: store the message in your SQL database, send an email, or perform custom functions. $fp = fopen('sms.log', 'a') $sms_data = print_r($_POST, TRUE) fwrite($fp, $sms_data) fclose($fp) There are no dependencies required, or additional software needed: Our PHP script for receiving SMS is compatible with all web servers and PHP versions. You can copy and paste the script for receiving SMS using PHP and begin working with it in seconds. Take a look at the following sample code. attach willl contain a comma separated URL for each attachment (optional).PHP will receive these in 160 character segments. from parameter is used to hold the phone number which sent the message to PHP. ![]()
0 Comments
Leave a Reply. |