【问题标题】:Whcms domain whois API doesn't workWhmcs 域 whois API 不起作用
【发布时间】:2010-09-29 23:05:31
【问题描述】:

这是我的代码:

<?php

$url = "http://www.site.com/whcms/includes/api.php"; # This is not the original url, just an exapmle
$username = "user"; # Admin username goes here
$password = "pass"; # Admin password goes here

$postfields["username"] = $username;
$postfields["password"] = md5($password);
$postfields["action"] = "domainwhois"; #action performed by the API:Functions
$postfields["domain"] = "whmcs.com";

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_TIMEOUT, 100);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $postfields);
$data = curl_exec($ch);
curl_close($ch);

echo(var_dump($data));
?>

我明白了:string(44) "result=error;message=Invalid IP 89.24.47.30;"

我做错了什么?

【问题讨论】:

    标签: php content-management-system dns whois


    【解决方案1】:

    找到解决方案!

    进入管理面板,常规设置 -> 安全并添加 IP 地址

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-01-16
      • 1970-01-01
      • 2015-10-09
      • 2017-12-03
      • 2018-06-07
      • 2014-03-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多