在GODADDY服务器

时间:2018-04-10 04:48:46

标签: php executable executable-jar godaddy-api

This is my folder structer. push.jar file is at httpdocs level and php file is at php folder

这是我使用的exec行。

$token = $row2['dt_deviceToken'];
$title = "New Task";
$message = "You have a new task to do. Plesae check it";
exec("java -jar push.jar $token $title $message");

当我在 000webhosting free server 中运行时,它会根据安全原因说明无法执行exec(); 命令。

现在我使用 GODADDY付费服务器。当我运行此代码时,它不会给任何事件提供像000webhosting给出的警告消息。可能是什么原因?

exec()命令是错误的。如何添加.jar文件的绝对路径

0 个答案:

没有答案
相关问题