远程服务器不喜欢whatsapi脚本行


remote server does not like whatsapi script line

我刚刚解决了这个论坛上的一个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);

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

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