如何在PHP中自动ping到pingomatic? [英] How to ping automatically to pingomatic in PHP?

查看:30
本文介绍了如何在PHP中自动ping到pingomatic?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在更新我的博客时自动 ping 到 pingomatic,就像 wordpress 所做的那样.Pingomatic 使用 XMLRPC,但我不知道它是如何工作的.有人可以帮我吗.

解决方案

乍一看似乎很容易.表单有一个带有 method=get 的纯 HTML 表单,我没有看到任何 XMLRPC 代码.我想说您只需填写一次表单,点击提交,然后将地址栏中的结果 URL 复制到 PHP http_get()fopen() 中.结果页面显示将此页面加入书签,稍后再返回以自动重新 ping",所以我很确定一个简单的 GET 请求就足够了,并且不涉及其他魔法.>

I want to ping automatically to pingomatic, when ever i update my blog, as it is done by the wordpress. Pingomatic uses the XMLRPC, but I don't know how it works. Can someone help me.

解决方案

Seems quite easy at first sight. The form there is a plain HTML form with method=get and I don't see any XMLRPC code around. I'd say you just fill in the form once, click to submit and then copy the resulting URL from the address bar into a PHP http_get() or fopen(). The result page says "Bookmark this page and come back to it later to automatically re-ping", so I'm pretty sure a plain GET request is enough and there is no other magic involved.

这篇关于如何在PHP中自动ping到pingomatic?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆