简体   繁体   English

如何将短信发送到远程服务器/数据库并在手机中获取数据

[英]how to send SMS to remote server/databse and get data in mobile phone

I have a small application written in PHP and a mysql database hosted on a remote server. 我有一个用PHP编写的小型应用程序,以及一个托管在远程服务器上的mysql数据库。 The database structure is like following: 数据库结构如下:

id      name            password
001    Bon Jovi          123 
002    Charlie Sheen     456

Now what I want to achieve is, I will SMS the id and password using my mobile phone (although I don't know where exactly to send) to the server(in this case I don't how it would be possible) and in return I want to know the name from my database. 现在我想要实现的是,我将使用手机(虽然我不知道确切发送到哪里)将ID和密码短信到服务器(在这种情况下,我不可能做到),并且返回我想从我的数据库中知道名字。

Example: If I write 001,123 in my mobile's message option and then send to my server(I don't know how)and i want to get the name "Bon Jovi" as feed back. 示例:如果我在手机的消息选项中写入001,123,然后发送到我的服务器(我不知道如何),并且我想获得名称“ Bon Jovi”作为反馈。

Would you please kindly tell me if what I want to achieve is possible, and if then how? 请您告诉我我想实现的目标是否可能,如果可以,怎么办?

Thanks in Advance :) 提前致谢 :)

There are a few different options covered previously. 前面介绍了一些不同的选项。 Of those available, I think the leader at this point is Twilio, who provides a well thought out REST interface that allows you to send and receive SMS messages. 在可用的功能中,我认为目前的领导者是Twilio,他提供了经过深思熟虑的REST接口,该接口允许您发送和接收SMS消息。

However see this thread for more ideas. 但是,请参阅此主题以获取更多想法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM