I think I've got it. I *think* it was a problem with calling a function 
before sending the content-type bit. Darn. I had just worked up a php 
script linked to a sql database. Oh-well. The ruby script was a lot more 
flexible. Thanks!
Here's another question: Is is it possible to dynamically generate a php 
script? I would like to do the following:
Take their search terms,
Check if the terms are already in the database
if they are -> pull the results from the database and display them
otherwise, pull the results out of google, and put them in the database, 
then display them.
Not sure if you could go from a ruby script to a php page and back 
again. Generating the html content in the script is a b*tch.
Thanks again.
-- 
Posted via http://www.ruby-forum.com/.