Discover the best of the web!
Learn more about Digg by taking the tour.
Google Webservices with PHP
phphacks.com — Have you ever wanted to enrich your site with information from Google, Amazon, eBay, or one of the many other sites that provide web services through SOAP? In this tutorial, I will be demonstrating how to use the SOAP package from PEAR to query Google's extensive database.
- 1035 diggs
- digg it
- cfuentea, on 10/12/2007, -14/+3SOAP and PEAR make me hungry (clap clap ... cri cri)
- oblongmouth, on 10/12/2007, -1/+13you eat Soap?
- se7en11, on 10/12/2007, -4/+4Yes, his mother tried this as a way to bring down his sailor-talk, but the poor kid actaully likes soap...
- unangst, on 10/12/2007, -5/+2Link is dead... Try this link to get you started if you're new to PHP and web services: http://www.devarticles.com/c/a/PHP/Create-Your-Own-Search-Engine-with-PHP-and-Google-Web-Services/
- kalos, on 10/12/2007, -2/+0Link worked, just took a long time to load. Both pages are interesting.
- edarta, on 10/12/2007, -0/+0Try this link if your server ever got digged ;-)
http://www.debian-administration.org/articles/188
- haackers, on 10/12/2007, -1/+1SOAP is very useful even in desktop applications. I rather use cgi compiled in c, but php works good too.
- hotpepper, on 10/12/2007, -0/+1PHP works well, too.
- mike503, on 10/12/2007, -0/+1i find SOAP to be a little too bulky for my tastes. but i guess it's good for general purpose apps.
to me REST seems more compact... i guess i just hate my experiences with SOAP so far. especially when it comes to SOAP-based webservices and our people at work that can't figure out easy ways to setup authentication for us people who don't use standard .NET-based apps to access them w/ NTLM... - YellowBook, on 10/12/2007, -2/+2How many adverts can you fit on one page? This site is going for some sort of record. ***** irritating when there are more adverts on a page than content and particularly on a site where the content is actually pretty good and less adverts might actually mean I visit them more frequently.
- perogi21, on 10/12/2007, -0/+4Umm, there are a few on the left and one on the right. I wouldn't have even seen them if you hadn't mentioned it.
Erleichda... - Jasonn, on 10/12/2007, -1/+4Advertisements? I would assume Firefox + Adblock + Adblock Filterset.G Updater (or some similar combination) to be the norm for the majority of Digg users.
- Vagari, on 10/12/2007, -0/+1I too am confused by this comment. Maybe there are pop-ups this person is seeing?
- juveduke, on 10/12/2007, -0/+0Are you referring to the article posted by unangst?
- perogi21, on 10/12/2007, -0/+4Umm, there are a few on the left and one on the right. I wouldn't have even seen them if you hadn't mentioned it.
- Protoss, on 10/12/2007, -6/+5Snakes On A Plane?!
- bornhj, on 10/12/2007, -2/+3No.
- mporcheron, on 10/12/2007, -0/+1Simple Object Access Protocol.
http://www.w3.org/TR/soap11/
http://www.w3.org/TR/soap12/
http://www.w3.org/TR/wsdl (Web Services Description Language) - mattryan50, on 10/12/2007, -1/+1I think you're right....I don't see how SOAP could mean anything but Snakes On A Plane!
- jo42, on 10/12/2007, -0/+1SOAP on a ROPE
- mike503, on 10/12/2007, -0/+0yo, give that guy props.
that's funny :) good timing.
- cakefart, on 10/12/2007, -0/+1I'm not a huge fan of PHP, but I'm really impressed with the recent proliferation of easy to use frameworks for implementing services for SOAP and asynchronous XML/HTTP requests- it really is much easier than than anything else I'm personally familiar with (.NET, J2EE, or mod_perl).
As a result, it's gotten to the point where I've to use PHP for setting up quick and dirty server side implementations while I'm hammering away on the client code. I would have never said anything like that three years ago.- mporcheron, on 10/12/2007, -0/+1PHP is great and pretty powerful, it just has a really bad rep. because of all the newbie programmers who can't code, make a script and sell it to some unsuspecting person who then has to hire a programmer to fix it; but I guess it's more work for the people who know the language to do.
- Blitzenn, on 10/12/2007, -0/+1Really? .NET makes it obsurdly simple to deploy web services as both a consumer and a supplier. A few lines of code that can even be automatically generated in a Visual Studio environment and you are done. You hardly even have to understand what you are doing to make it work. The new PHP tack is certainly elegant, but it is simply getting up to speed with where established coding bases have been for a while now. If you have built web services apps with .NET, you would find you would have a hard time arguing any method to simplify it. I am glad to see some options in the marketplace however. .NET doesn't fit everywhere, but neither does PHP.
- nutcase, on 10/12/2007, -1/+0se7,
awesome comment. - lpcustom, on 10/12/2007, -0/+1PHP hacks should use variable-width. I have to scroll right to see the advertisement. This isn't good for your site. At home I wouldn't have this problem, but here at work I have a small monitor that I keep at 1024x768. There's no reason why I should have to side-scroll on this page.
- Blitzenn, on 10/12/2007, -0/+1Good to see that PHP is finally starting to catch up with real world code bases.
Digg is coming to a city (and computer) near you! Check out all the details on our