topical media & game development

talk show tell print

professional-ajax-08-WebSearch-websearch.php / php

  header("Content-Type: text/xml");
  header("Cache-Control: no-cache");
  if ( isset( _GET["search"] ) ) {
      searchTerm = urlencode(stripslashes(_GET["search"]));
      url = "$searchTerm&format=rss";
      xml = file_get_contents(url);
      echo xml; 

(C) Æliens 20/2/2008

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.