473,387 Members | 1,512 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

How do I ping a website using php?

290 100+
The Wordpress blog software does an antomatic ping to several directories and search engines everytime you add a new post.

I have written my own CMS and want to include this feature, but I have not got a clue how they do it. :(

What I want to to do is send the ping after I have updtaed the database.

Does anyone know how I would do this ?
Oct 3 '09 #1
6 4551
Dormilich
8,658 Expert Mod 8TB
do you mean the shell command ping or a pingback?
Oct 3 '09 #2
jeddiki
290 100+
To be honest, I don't know what they use.
That is really part of the question.

I just know that part of the Wordpress blog software (which appears to be all in php) allows you to enter a list of sites to ping and therefore update their indexes.
I think that the ping just gets them to send a bot over to your website to crawl it.

Here is an example from Technorati

After you’re a Technorati member and your blog platform doesn’t already ping Technorati, you can configure your blog software to ping Technorati automatically by entering http://rpc.technorati.com/rpc/ping into your blog’s configuration.
So what I want to do is find out what wordpress actually does with that kind of url.

Whatever it does, I want to do it each time I update my CMS with a new post.

Here is an image which shows the Wordpress interface:



I hope someone can help :)
Oct 4 '09 #3
ak1dnar
1,584 Expert 1GB
You can ping to other websites like technorati by writing down your own "XML-RPC" client application. most of the blogging platforms has in built tools for this, but since you have written your own CMS tool you may need to create your own XML RPC client for that. here is an example of how to do it for technorati.

http://techchorus.net/xml-rpc-client...ing-technorati

And if you need to ping to other services, then you should modify the coding accordingly. I think you are not the first person who willing to do this. So why don't you first go to "phpclasses.org" and find it there. good luck with your work.
Oct 4 '09 #4
jeddiki
290 100+
I just read the info on Goggle Sitemaps Generator.

It looks like the best thing for me to do will be to download that and insatll it on my server. Looks like it will do everything and I don't need to write this stuff myself ?

It looks to me like it keeps it up to date by looking for new pages from traffic. So after a new post is enetered all I have to do is look at the post ( which I would do anyway) and then it will be in the site map.

Here is the page ref: http://googlesitemapgenerator.google...gsg-intro.html

What do you think ?
Oct 5 '09 #5
TheServant
1,168 Expert 1GB
Link is broken, should be:
http://googlesitemapgenerator.google...gsg-intro.html

I think this is what you want rather than doing everything else. It is good and is already automated so that you shouldn't have to do anything. If you do install it and try it, let us know what it's like so others can benefit from your experience.

There are lots of other sitemap scripts, so maybe look around if you're interested, but I'm sure Google's one is good... I imagine that for google searching it is the best??
Oct 5 '09 #6
ak1dnar
1,584 Expert 1GB
I thought your requirement was updating other websites when you put new contents to your website.

So if you don't mind I'd like to explain this.

Sitemap doesn't ping or notify other websites. Sitemap will only help for the Search engine crawlers to find the site contents easily and that is only after they (crawlers) come to your website.

Websites like Tecnorati are blog search engines. There are more like this:
http://en.wikipedia.org/wiki/List_of_search_engines
If you need to update your website contents on them, you should do it as i said before. or else you can wait until the crawlers comes to see your sitemap.
Oct 6 '09 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

14
by: Alexandre Plennevaux | last post by:
hello ! I would like to measure the time a user needs to connect to my website. In other words, to perform a ping between my website and the user's computer. I'm scratching my head as to how...
14
by: Egil Hansen | last post by:
Hi I'm wondering if its possible to write a javascript, that can ping a ip and return the average round trip time (like ping in dos/linux)? Regards, Egil.
0
by: Ed | last post by:
I've attached some VB.NET code I've hacked together (some taken from MS examples & newsgroup postings) that will perform a ping or IcmpSendEcho using the icmp.dll (see this for more info:...
1
by: Krish | last post by:
All, I have an offline application that works online for some data syncronization. For data syncronization I access a webservice. I want to show whether my application is online or not by checking...
4
by: =?Utf-8?B?QWxleCBLLg==?= | last post by:
Hi all I need a simple program that allows me to check if an IP address is pingable. I am not going to send/receive anything to the remote host, just check if it is visible. Something like...
3
by: imughal | last post by:
I got the perl script which does following task. This solution reads in a line from a text file that is passed in as input parameter 1 to a Perl script. This script will then ping the machine...
1
by: Bomil | last post by:
This is the code Shell ("cmd /k ping -t -w 10 -l " & Text2.Text " & text1.text) its putting a command in cmd.exe and the -l gets his code from text2.text And then the website its going to...
6
by: Dave Marden | last post by:
I currently use this routine in vbscript to ping computers and get the status of ping to determine whether to try to backup a machine, I am trying to change it to work with vb2003.net I am...
3
by: nagota | last post by:
Hi I want to load some xml data from the server running on mymachine (localhost), from a flash swf embedded on an external website. The localhost has crossdomain.xml as well, but the problem is...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.