Location: PHPKode > scripts > CReferrer > creferrer/test_referrer.php
<?php 
	require_once (dirname(__FILE__)."/creferrer.class.php"); 	

	// To add more emngines simpli edit engines.ini and add other sections:
	//
	// The section name MUST be unique for the whole file. You can use whatever you want.
	// The Host field contains a string that allows the class to identify a specific search engine
	// For Google I used the "google" string so the class can identify all localized version of Google =).
	// QueryField finally contains the query string field name that contains the search engine query keywords.
	//
	// Please if you add other search engines let me to know it so I can add it to the ufficial distribution class.

	// Test code.
	$referrer = new CReferrer ();
	
	print ("<b>Arianna</b> keywords are:  " . $referrer->getKeywords ("http://arianna.libero.it/search/abin/search?query=god+is+a+deejay&radiobutton=arianna&x=33&y=11") . "<br>");
	print ("<b>Altavista.com</b> keywords are:  " . $referrer->getKeywords ("http://it.altavista.com/web/results?q=god+is+a+deejay&kgs=1&kls=1&avkw=aapt") . "<br>");
	print ("<b>Virgilio.it</b> keywords are:  " . $referrer->getKeywords ("http://search.virgilio.it/search/cgi/search.cgi?qs=god+is+a+deejay&f=hv&switch=0&offset=0&hits=10&cerca.x=29&cerca.y=7") . "<br>");
	print ("<b>Google.it</b> keywords are:  " . $referrer->getKeywords ("http://www.google.it/search?q=god+is+a+deejay&ie=ISO-8859-1&hl=it&btnG=Cerca+con+Google&lr=") . "<br>");
	print ("<b>Supereva</b> keywords are:  " . $referrer->getKeywords ("http://search.supereva.it/cgi-bin/p_gsearch.chm?sefull=1&lr=lang_it&hl=it&motore=4&q=god%20is%20a%20deejay") . "<br>");
	print ("<b>Tiscali</b> keywords are:  " . $referrer->getKeywords ("http://search-dyn.tiscali.it/search.php?key=god+is+a+deejay&hits=10&language=it&maxCount=0&tiscalitype=web&collection=web&tiscalinumb=0&external=1&spell=suggest&offset=0&pg=1&tipo=web") . "<br>");
	print ("<b>MSN.it</b> keywords are:  " . $referrer->getKeywords ("http://search.msn.it/results.aspx?cp=1252&PI=9547&DI=120&FORM=MSNH&q=god+is+a+deejay") . "<br>");
	print ("<b>IlTrovatore</b> keywords are:  " . $referrer->getKeywords ("http://search.iltrovatore.it/cgi-bin/index.cgi?q=god+is+a+deejay&cs=iso-8859-1") . "<br>");
	print ("<b>Excite.it</b> keywords are:  " . $referrer->getKeywords ("http://www.excite.it/search/web/results?q=god+is+a+deejay") . "<br>");
	print ("<b>Lycos.it</b> keywords are:  " . $referrer->getKeywords ("http://cerca.lycos.it/cgi-bin/pursuit?query=god+is+a+deejay&NDB=asp_lycos&id_window=120&tld=all&family=off&cat=it") . "<br>");
	print ("<b>Yahoo.com</b> keywords are:  " . $referrer->getKeywords ("http://search.yahoo.com/search?p=god+is+a+deejay&ei=UTF-8&fr=fp-tab-web-t&cop=mss&tab=") . "<br>");
	print ("<b>Yahoo.it</b> keywords are:  " . $referrer->getKeywords ("http://it.search.yahoo.com/search/it?fr=fp-top&p=god+is+a+deejay&y=y") . "<br>");
	print ("<b>HotBot.lycos.it</b> keywords are:  " . $referrer->getKeywords ("http://search.hotbot.lycos.it/cgi-bin/pursuit?query=god+is+a+deejay&cat=hb_loc&SITE=it&command=") . "<br>");
	print ("<b>Kataweb</b> keywords are:  " . $referrer->getKeywords ("http://www.kataweb.it/search/index.jsp?q=god+is+a+deejay&as_dt=i&btnG=%A0Vai%A0&ie=UTF-8&oe=UTF-8&hl=it&start=0") . "<br>");
	print ("<b>Godado Italia</b> keywords are:  " . $referrer->getKeywords ("http://www.godado.it/godado.pperl?Keywords=god+is+a+deejay") . "<br>");
	print ("<b>Google</b> keywords are:  " . $referrer->getKeywords ("http://www.google.com/search?hl=en&ie=ISO-8859-1&q=god+is+a+deejay") . "<br>");
	print ("<b>AOL Time Warner</b> keywords are:  " . $referrer->getKeywords ("http://search.aol.com/aolcom/search?invocationType=topsearchbox.%2Faolcom%2Findex.jsp&query=god+is+a+deejay&x=21&y=3") . "<br>");
	print ("<b>MSN.com</b> keywords are:  " . $referrer->getKeywords ("http://search.msn.com/pass/results.asp?RS=CHECKED&FORM=MSNH&v=1&q=&q=god+is+a+deejay&cp=1252") . "<br>");
	print ("<b>Ask Jeeves</b> keywords are:  " . $referrer->getKeywords ("http://web.ask.com/web?q=god+is+a+deejay&o=0&qsrc=0") . "<br>");
	print ("<b>Lycos.com</b> keywords are:  " . $referrer->getKeywords ("http://search.lycos.com/default.asp?lpv=1&loc=searchhp&tab=web&query=god+is+a+deejay") . "<br>");
	print ("<b>NBCI.com</b> keywords are:  " . $referrer->getKeywords ("http://msxml.infospace.com/_1_29YGTH4034B8I8J__info.nbci/dog/results?otmpl=dog/webresults.htm&qcat=web&qkw=god+is+a+deejay&top=1&start=&ver=12576") . "<br>");
	print ("<b>Looksmart</b> keywords are:  " . $referrer->getKeywords ("http://search.looksmart.com/p/search?tb=dir&qt=god+is+a+deejay") . "<br>");
	print ("<b>HotBot</b> keywords are:  " . $referrer->getKeywords ("http://search.hotbot.co.uk/cgi-bin/pursuit?query=god+is+a+deejay&cat=hb_loc&SITE=uk&command=") . "<br>");
	print ("<b>Netscape</b> keywords are:  " . $referrer->getKeywords ("http://search.netscape.com/ns/search?fromPage=NSCPTop&query=god%20is%20a%20deejay") . "<br>");
	print ("<b>Teoma</b> keywords are:  " . $referrer->getKeywords ("http://s.teoma.com/search?q=god+is+a+deejay&qcat=1&qsrc=0") . "<br>");
	print ("<b>AllTheWeb.com</b> keywords are:  " . $referrer->getKeywords ("http://www.alltheweb.com/search?avkw=fogg&cat=web&cs=utf-8&q=god+is+a+deejay&_sb_lang=pref") . "<br>");
?>
Return current item: CReferrer