Joke Collection Website - Public benefit messages - Who can tell me how to use php language to connect mobile phone short messages to send and receive short messages through database, preferably with comments!

Who can tell me how to use php language to connect mobile phone short messages to send and receive short messages through database, preferably with comments!

Programs can't just send messages to people.

1. Theoretically, you need to negotiate with China Mobile or China Unicom and get the business license of SP (service provider) before you can use the API of SMS. (more difficult)

2. If you find an SP and talk about cooperation, he will give you the reference method of the interface. Generally it is socket+xml or http+xml. It is very convenient to call socket related functions in PHP.

3. If there is an easier way, it is through some free/paid SMS sending service providers, who provide plug-ins and interfaces for sending SMS. There are many ways, most of which have HTTP and webservice interfaces that PHP can call. For example, this platform:

()

4. Some people use PHP to call Fetion API to send, but the official does not provide it, so it is not very stable. For details, please search fetion API PHP.