| [ PHPXref.com ] | [ Generated: Sun Jul 20 21:13:28 2008 ] | [ Yahoolib 0.1 ] |
| [ Index ] [ Variables ] [ Functions ] [ Classes ] [ Constants ] [ Statistics ] | ||
[Summary view] [Print] [Text view]
1 yahoolib 0.1 June 3rd, 2005 2 Web site: http://sourceforge.net/projects/yahoolib 3 Author: Jason Levitt (fredb86@users.sourceforge.net) 4 5 Yahoolib is a simple set of PHP functions that makes it easy to add Yahoo's search web services (developer.yahoo.net) to your PHP scripts. 6 7 ===================================== 8 9 The goals for these functions are: 10 11 1) One code base that works under both PHP4 and PHP5 12 2) No PHP extensions required (only the XML extension is needed and it's almost always installed by default) 13 3) Simple recursive parser that can be used with all the web services 14 4) Submit either GET or POST requests programatically 15 5) Return detailed errors from HTTP, Yahoo, and XML parsing 16 6) Always return array type when parsing XML data defined as an array even if only one XML element is parsed 17 18 ===================================== 19 20 The file yahootools.inc.php contains three functions you can use to run Yahoo's search services: 21 22 XmlParser() -- takes a string of XML as input and returns the XML data as an associative array 23 24 GetData() -- takes a REST URL as input, submits it as an HTTP 1.0 GET request, and returns the result 25 26 PostData() -- takes a REST URL as input, submits it as an HTTP 1.0 POST request, and returns the result 27 28 ===================================== 29 30 To see things work, put both the files yahootools.inc.php and yahootest.php into the same directory on a web server and open the file yahootest.php in your web browser. 31 32 You can change the requests by editing the entries in the array $webservices in the file yahootest.php 33 34 ======================================
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| [ Powered by PHPXref - Served by Debian GNU/Linux ] |