0

我刚刚在这个论坛上解决了一个 whatsapi 问题,现在又遇到了另一个问题。

我通过调用whatsprot.class.php 中的类来运行脚本。我可以像魅力一样在本地机器上运行所有脚本。但是远程服务器不喜欢我脚本中的某一行并且拒绝超越它;

我的剧本是;

require "src\whatsprot.class.php";

$username = "91xxxxxxxxxxx"; //Mobile Phone prefixed with country code so for india it will be 91xxxxxxxx
    $password = "xxxxxxxxxxxxxxxxxxxxxxxxxxxx";
$identity = strtolower(urlencode(sha1($username, true)));

$w = new WhatsProt($username, $identity, 'WhatsApp Messaging', true);

我的远程服务器没有跨越的线是;

$w = new WhatsProt($username, $identity, 'WhatsApp Messaging', true);

我绝对是个业余爱好者。所以请告诉我需要什么其他信息来揭开这个问题的神秘面纱......

4

1 回答 1

0

最后,错误日志告诉我库中存在一些路径问题。当我将执行文件移动到 whatsprot.class.php 所在的“src”目录时,瞧,脚本开始工作了!

于 2015-12-19T12:04:11.233 回答