【问题标题】:remote server does not like whatsapi script line远程服务器不喜欢 whatsapi 脚本行
【发布时间】:2015-12-19 20:04:11
【问题描述】:

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

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

【问题讨论】:

  • 你能把你服务器的错误信息加进去吗?
  • 请告诉我们您的错误信息
  • 抱歉,@seb ,GottZ .. 无法获取服务器的错误日志,因为我在服务器上的所有域都存在一些 cpanel 问题,并且看不到日志...或 cpanel 上的任何内容那件事... :(

标签: php class whatsapp whatsapi


【解决方案1】:

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2012-10-20
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多