XML-RPC 服务器帮助
我现在尝试使用 CodeIgniter 框架创建 xml-rpc 服务器。
<?php
$this->load->library('xmlrpc');
$this->load->library('xmlrpcs');
$config['functions']['weblogUpdates.ping'] = array('function' => 'weblogUpdates.ping');
$config['functions']['ping'] = array('function' => 'weblogUpdates.ping');
$config['functions']['weblogUpdates'] = array('function' => 'weblogUpdates.ping');
$config['object'] = $this;
$this->xmlrpcs->serve();
?>
但我遇到的问题是当 Wordpress 尝试 ping 我的文件时。 我不知道 $config['functions'][HERE]; 中应该有什么功能;
有人有解决这个问题的办法吗?
I'm now trying to create a xml-rpc server with the CodeIgniter Framework.
<?php
$this->load->library('xmlrpc');
$this->load->library('xmlrpcs');
$config['functions']['weblogUpdates.ping'] = array('function' => 'weblogUpdates.ping');
$config['functions']['ping'] = array('function' => 'weblogUpdates.ping');
$config['functions']['weblogUpdates'] = array('function' => 'weblogUpdates.ping');
$config['object'] = $this;
$this->xmlrpcs->serve();
?>
But the problem I have is when Wordpress is trying to ping my file. I can't figure out what I should have as function in the $config['functions'][HERE];
Anyone have a solution to this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您是否看过codeigniter 用户指南?
Have you looked at the codeigniter user guide?
谢谢,找到问题了,我太笨了。
有一个测试服务器正在运行,我已将 Wordpress 设置为 ping,但在获得新服务器时忘记更改地址:$
Thanks, found the problem, I'm so dumb.
Had a beta-server up running which I had set Wordpress to ping, and forgot to change the address when I got the new server :$