How to ping automatically to pingomatic in PHP?

ε祈祈猫儿з 提交于 2019-12-03 15:14:22

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/2209463/how-to-ping-automatically-to-pingomatic-in-php

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!