diff options
author | Hans Duedal <hd@onlinecity.dk> | 2015-01-26 11:59:22 +0100 |
---|---|---|
committer | Hans Duedal <hd@onlinecity.dk> | 2015-01-26 11:59:22 +0100 |
commit | b8632357b4bf48668aa461d9004c70be9c99de9e (patch) | |
tree | 70862ac3723986600bb9023a7381fc2ea226a208 | |
parent | b78ff21f391f97ce33d9789555db653bc7d8a4af (diff) | |
download | php-smpp-master.zip php-smpp-master.tar.gz php-smpp-master.tar.bz2 |
Update README.mdHEAD1.2origin/masterorigin/HEADmaster
Added reference to pcntl
-rw-r--r-- | README.md | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -109,6 +109,14 @@ Implementation notes F.A.Q. ----- +**Can I use this to send messages from my website?** +Not on it's own, no. After PHP processes the request on a website, it closes all connections. Most SMPP providers do not want you to open and close connections, you should keep them alive and send enquire_link commands periodically. Which means you probably need to get some kind of long running process, ie. using the [process control functions](http://www.php.net/manual/en/book.pcntl.php), and implement a form of queue system which you can push to from the website. This requires shell level access to the server, and knowledge of unix processes. + +**How do I receive delivery receipts or SMS'es?** +To receive a delivery receipt or a SMS you must connect a receiver in addition to the transmitter. This receiver must wait for a delivery receipt to arrive, which means you probably need to use the [process control functions](http://www.php.net/manual/en/book.pcntl.php). + +We do have an open source implementation at [php-smpp-worker](https://github.com/onlinecity/php-smpp-worker) you can look at for inspiration, but we cannot help you with making your own. Perhaps you should look into if your SMSC provider can give you a HTTP based API or using turnkey software such as [kannel](http://www.kannel.org/), this project provides the protocol implementation only and a basic socket wrapper. + **I can't send more than 160 chars** There are three built-in methods to send Concatenated SMS (csms); CSMS_16BIT_TAGS, CSMS_PAYLOAD, CSMS_8BIT_UDH. CSMS_16BIT_TAGS is the default, if it don't work try another. |