I am developing a Php script which uses the Weblog_Pinger class written in php by Rogers Cadenhead. The script currently logs all pings to a MySQL database table, but is controlled using a single php script which calls the ping_ping_o_matic function for each site. I noticed that once more than about 20 sites were being pinged, the script sometimes timed out.
Instead of adjusting settings in php.ini or the web server, I decided to implement the Weblog_Pinger class with a controller which uses a MySQL database to store addresses to servers which support XML-RPC pings. The database will also store details of the blogs / rss feeds being submitted. When commencing the bulk ping, a dialog will allow a selection from the list of blogs / rss feeds, and the "changes url" for each selection to be specified. The php interface will also allow XML-RPC servers and additional blogs or rss feeds to the database.
I am currently trying a few methods of processing the large number of XML-RPC pings without the script timing out. Such as a main php script which calls another script which processes a subset (10 or 15 at a time) of the full list of servers until all have been pinged. Very Clunky.
While searching for an alternative solution I came accross a free and complete Java application which does exactly what I am trying to achieve: Free XML-RPC blog ping site submitter: "Blog Ping", posted by Wayne Horkan. It can ping up to 1000 XML-RPC servers at a time. Documentation supporting the Java application also provides general information regarding Search Engine Optimization (SEO), which is valuable if attempting to increase hits to your blog / site.
10 comments: