I have a system that will update a rss feed sometimes. When the rss feed is updated I want my php code to ping a list sites. I can't seem to find the code for this though, just a bunch of manual sites. Any help is greatly appreciated.
here you have bunch of scripts, hope that helps http://www.hotscripts.com/PHP/Scripts_and_Programs/Networking_Tools/Ping/index.html
you can use shell command: http://www.php.net/manual/en/function.shell-exec.php i use it all the time
http://www.xmlrpc.com/ This site may fill you in on some of the background. Alternatively you could just use curl to automate the form submission at one of the manual services.
Can you send me a link to some info on how to use that command to ping? I cant seem to find it and I don't know much about the unix command line.
function url_exists($url) { $result = parse_url($url); if(isset($result['host'])) { $cmdResult = gethostbynamel($result['host']); if($cmdResult) { return true; } else { return false; } } else { return false; } }
I'm talking about a ping to tell sites that my blog has updated, i'm not sure if the above function is that kind of ping?
I don't think that function is what you're looking for. A ping has different meanings in blogging and networking. That's the networking ping. A blogging ping is sent via xmlrpc. Basically it is just an automated way to submit a form to a website. For more about xmlrpc follow the link in my previous post. Different services will implement things slightly differently but to get you started http://www.weblogs.com/api.html http://blogs.feedburner.com/feedburner/archives/000478.html http://www.syndic8.com/web_services/