General Programming Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingGeneral Programming Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old July 18th, 2002, 07:45 PM
DavidM DavidM is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2002
Posts: 78 DavidM User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Google & Amazon Web Services

I ran across these URLs today and thought someone else may find them useful. If you want to include a Google or Amazon search funtionaility within your PHP application (or .NET, Java, etc.) then check out these resources:

Google article on devShed:
http://www.devshed.com/Server_Side/...eAPI/page2.html

and more code at http://www.sebastian-bergmann.de/?page=google

And Amazon documentation/code:
http://www.php9.com/index.php/secti...zon%20PHP%20API

A couple neat PHP sites:

http://www.phpbeginner.com
http://www.php9.com

Hope others will find this useful. Comments welcome...

Reply With Quote
  #2  
Old July 18th, 2002, 08:48 PM
mytch mytch is offline
Dev Articles Novice (500 - 999 posts)
 
Join Date: Apr 2002
Location: Sydney, Australia
Posts: 589 mytch User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Thanks for that David. I will ask our resident .NET guru, James to write an article on consuming those web services from an ASP.NET application. I may also write one on how to do it with PHP.

Reply With Quote
  #3  
Old July 18th, 2002, 08:52 PM
DavidM DavidM is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2002
Posts: 78 DavidM User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Great! Look forward to reading them....

The Google and Amazon items sound like good features for SiteWorksPro.... [hint hint hint] :-)


...david

Reply With Quote
  #4  
Old July 21st, 2002, 04:11 PM
fumi fumi is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2002
Location: Japan
Posts: 9 fumi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Nice articles. Using the XML over HTTP is a breeze.

You can see it running below. Check Amazon's site for details on configuring search results.

http://www.jasonnewton.net/web_services.php

best wishes,

Reply With Quote
  #5  
Old July 21st, 2002, 04:20 PM
DavidM DavidM is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2002
Posts: 78 DavidM User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Just curious -- what is your site written in?

Would you care to share what you're using for the amazon lookup? Can you share your code?

Reply With Quote
  #6  
Old July 21st, 2002, 04:33 PM
fumi fumi is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2002
Location: Japan
Posts: 9 fumi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hi David,

I use xml and just transform it to html using xslt. I use PHP's Sablotron from Ginger Alliance to do this.

As for the Amazon search, just download the files and make one change to the developer's token key (you need to get this from Amazon).

Hope this helps.

Fumi

Reply With Quote
  #7  
Old July 21st, 2002, 06:08 PM
DavidM DavidM is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2002
Posts: 78 DavidM User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
I don't quite follow your explanation of XSLT and the Sablotron. What is this? Why can't you just loop thru a PHP array instead of another class???

Can you provide source?

Reply With Quote
  #8  
Old July 22nd, 2002, 06:08 AM
fumi fumi is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2002
Location: Japan
Posts: 9 fumi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
David,

You asked how the site is made. As explained, I use xml. This is then transformed to html using an xslt processor called Sablotron. Older browsers don't all support xsl, so the transformation must occur on the server and then the resulting html is delivered to the client. Sablotron can be used with a variety of different languages, including php.

However, you seem to be confusing this with the Amazon API tutorial. This has nothing to do with Sablotron.
Just go to the tutorial, download the zip containing the 4 files, make the one change to the developers token key, upload the files and you're all set.

Can anyone else help here?

Reply With Quote
  #9  
Old July 25th, 2002, 09:13 AM
DavidM DavidM is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2002
Posts: 78 DavidM User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Thanks Fumi. I ran across an article on devshed.com that explains what Sablotron is and how to use it. I've been reading up on XML/XSLT, etc. since our initial discussion and understand things much better.

Thanks!

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingGeneral Programming Help > Google & Amazon Web Services


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT