使用PHP通过Skype发送短信 [英] Send an SMS via Skype with PHP

查看:193
本文介绍了使用PHP通过Skype发送短信的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人有使用PHP发送短信的经验 skype

Does anyone have any experience using PHP to send an sms via skype

我希望用户关闭网站使用一个表格,如果他们想发送短信来做一个请求,给他们一个选择。首先,它必须在客户端计算机上检查Skype的可用性,如果是,它应该发送短信。当他登录网站时,我已经在数据库中拥有用户手机号码。

I want the user off the website to use one the forms and give them a choice if they want to send an SMS to do a request. First it will have to check for the availabillity of Skype on the clients computer, if so it should send an SMS. I already have the users mobile number in the database when he logs to the website.

也许,我必须使用Javascript和PHP的组合?

Maybe, I have to use a combination off Javascript and PHP?

我看到Skype有一个 call.php 脚本,但我似乎无法理解它应该如何使用。以及如何调整它发送短信。

I see that Skype has a call.php script, but I can't seem to understand how it is supposed to be used. And also how to ajust it to send sms messages.

如果有人能给我一些指示,那将会有所帮助。

If anyone can give me some pointers, that would be helpfull.

如果要关闭Skype,那么是否有人知道在网站上实施的可以实现相同目标的好的短信服务?

If Skype is to closed off then does anyone know a good sms service to implement on the website that would allow me to achieve the same goal?

推荐答案

如果您在Windows上运行PHP,则可以使用 PHP的COM包装器 Skype4COM 进行交互。我没有测试过,但是按照Skype4COM文档中的示例,这应该可行:

If you're running PHP on Windows, you can use the COM wrapper for PHP to interface with Skype4COM. I haven't tested it, but following the examples from the Skype4COM documentation, this should work:

$skype = new COM("Skype4COM.Skype");
$skype->sendSms("+1234567890", "SMS text goes here");

但是,这将使用服务器上运行的Skype实例。当然不可能使用客户端JavaScript与客户端计算机上运行的Skype实例进行交互。可以使用MSIE和VBScript进行一些基本的接口,但我认为这种方式的功能也非常有限,因为如果不受限制,它将是非常不安全的。

However, this would use the instance of Skype running on your server. It is certainly impossible to interface with the instance of Skype running on your client's machine using client-side JavaScript. Some basic interfacing can be done with MSIE and VBScript, but I think that this way the functionality would be very limited as well, because it would be very insecure if it wasn't limited.

这篇关于使用PHP通过Skype发送短信的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆