查看内容时 WordPress 自动 ping
除了发布帖子时进行 ping 之外,我还需要在查看页面或帖子时自动 ping 我的 WordPress 网站(我从旧 html 导入了很多帖子)。
我不知道 ping 的格式是什么。一个人告诉我,ping 到某种类型的网站就像运行下面的 URL 一样简单(这是真的吗?):
http://www.pingserver.com/[URL-TO-PING]
ping 到 pingomatic 怎么样?
Besides ping when post is published, I need my wordpress website to ping automatically when page or posts is viewed (i have imported lots of posts from old html).
I don't know what is the format in pinging. a guy told me that ping to some type of website is as simple as running URL like below (is this true?):
http://www.pingserver.com/[URL-TO-PING]
how about pinging to pingomatic?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
你为什么要这样做?每次看到视图时都进行跟踪?你可以设置谷歌分析(www.google.com/analytics/),它会比 ping 做得更好。
除非您尝试为每个视图触发某种事件,在这种情况下您可以设置一个触发它的 RESTful get 请求吗?
最后,如果您真的决定使用 ping,PHP 附带了对 ping 库的支持: http://www.codediesel.com/php/ping-a-server-using-php/
why do you want to do this? to keep track of every time you get a view? you can set up google analytics (www.google.com/analytics/) and it'll do it much better than ping.
unless you're trying to trigger some sort of event per view, in which case you could set up a RESTful get request that triggers it?
finally, if you're really set on using ping, php comes with support for a ping library: http://www.codediesel.com/php/ping-a-server-using-php/
与 Drupal 不同,Wordpress 缺乏工作流程,
最好的解决方案是将 Drupal 与 WordPress 集成,这样您就可以同时拥有这两个功能
unlike drupal, wordpress is lack of workflow
the best solution is to integrate drupal with wordpress so you have both feature