【发布时间】:2016-09-07 05:49:07
【问题描述】:
我想使用 Gammu SMS 网关从网络向手机发送消息。我之前在命令提示符下使用此命令尝试过:
gammu --sendsms text 08512345677 -text "Hello World!"
它有效!
然后我在 PHP 文件上尝试使用:
exec('c:\gammu\bin\gammu --sendsms text 08512345677 -text "Hello World!" ');
但它不起作用。谁能解决我的问题?
【问题讨论】:
-
问题也可能是由于调制解调器缺少权限引起的(请参阅wammu.eu/docs/manual/config/index.html#option-Device)。但是仍然弄清楚程序是否可以执行以及打印出什么是一个很好的起点。