Php wordpress xml rpc超时
我正在尝试使用xml rpc在wordpress安装上执行某些任务 这就是我正在使用的Php wordpress xml rpc超时,php,wordpress,xml-rpc,Php,Wordpress,Xml Rpc,我正在尝试使用xml rpc在wordpress安装上执行某些任务 这就是我正在使用的 include_once '/local/www/xxxxxxxx/wp-includes/class-IXR.php'; $objClient = new IXR_Client('http://xxxxxxxx/xmlrpc.php'); 如果我在objClient上进行打印,我会得到以下结果 IXR_Client Object ( [server] => xxxxxxxx [por
include_once '/local/www/xxxxxxxx/wp-includes/class-IXR.php';
$objClient = new IXR_Client('http://xxxxxxxx/xmlrpc.php');
如果我在objClient上进行打印,我会得到以下结果
IXR_Client Object
(
[server] => xxxxxxxx
[port] => 80
[path] => /library/xmlrpc.php
[useragent] => The Incutio XML-RPC PHP Library
[response] =>
[message] =>
[debug] =>
[timeout] => 15
[headers] => Array
(
)
[error] =>
)
我搞不懂的是,超时时的15意味着什么,以及为什么超时。任何人有任何建议吗?15是以秒为单位的最长时间,在此之前,如果未连接到服务器,客户端将停止尝试。您可以通过查看来尝试将其设置为更高的值
差不多
$objClient = new IXR_Client('xxxxxxxx', 'library/xmlrpc.php', 80, 30);
将时间限制增加到30秒,应该足够了。否,该响应中没有错误。事实上,这是我期望的默认响应[在检查文档之后]