Update June 01, 2010: Please note that this Toolkit has been superceded by the Bing Search Library for PHP

The Bing Search Library for PHP is different that this toolkit in the following ways:
  • It is a generic Bing library and can be used for any Bing Search scenario (404 or otherwise)*
  • While the Bing 404 Web Page Error Toolkit is primarily based on JavaScript (client side execution), the Bing Search Library for PHP is based on PHP code (server side execution)

There are no plans to continue to maintain the Bing 404 Web Page Error Toolkit for PHP.

Unless you are specifically looking for a JavaScript based Bing Library for PHP, we recommend using the Bing Search Library for PHP instead.

Project Description

For large web sites with extensive amounts of content, 2 to 10 percent of traffic is looking for pages that either don’t exist or have been moved. Most web servers return a generic 404 error page or a sitemap when a user’s desired page cannot be found. These unhelpful pages often result in a dead end for users. With the Bing 404 Web Page Error Toolkit for PHP Developers, you can create dynamic 404 pages that contain customized error messages along with search results from Microsoft’s Bing Search Engine seeded with relevant keywords to help your users move past the missing page and find the information they need. The Toolkit is a customizable PHP application that replaces the default error page on your IIS or Apache web servers with Bing search results based on keywords derived from the URL requested by the user.

The Toolkit is composed of PHP and Javascripts code that replaces the default error page on your web server. The process works as follows:
  • A user's browser sends a request for a page that no longer exists at the request URL.
  • Your server identifies a 404 and executes the Toolkit.
  • Toolkit extracts keywords and renders them back to the user's browser.
  • User's browser sends a request to Bing API.
  • Bing API returns appropriate results to user's browser.
  • User's browser renders results in the context of the page that you have customized.

The Toolkit enables you to use the Bing API to return results for the specified domain and locale, control the number of results returned on your page, choose whether to offer spelling corrections, and customize your error message.

For complete documentation please refer to the /doc folder after unziipping the downloaded package.

Last edited Jun 1, 2010 at 5:36 PM by suchawla, version 24