Need help with a PHP proxy script

Posted by blabus on Stack Overflow See other posts from Stack Overflow or by blabus
Published on 2010-04-20T03:52:10Z Indexed on 2010/04/20 4:03 UTC
Read the original article Hit count: 300

Filed under:
|
|
|
|

I’m currently working on a small web app that allows people to search for music album covers. However, I’m having a problem getting my PHP proxy to work. Right now I’m using a simple PHP proxy script to grab the HTML from Google’s image result page, and parse it to find the first image result (I can’t use the image search API because it doesn’t offer the parameters that I need to use). I know that the PHP script works in some way, because I’ve used it to grab XML data across domains, so I also assume that since I’m trying to grab HTML that’s what’s causing the error.

So anyway, here is the site where you can see it: http://www.5byfive.net/beta/index.html

Just type something into the textbox, and it will come up with the error that’s returned (I’ve placed the HTML into a file so you can see what it actually looks like here: http://www.5byfive.net/beta/error.html ).

Now, I’ve tried searching for info on the web, but unfortunately I basically know nothing about PHP, so I really don’t know how to fix it, and was wondering if anyone here could lend any info or help.

Thanks!

© Stack Overflow or respective owner

Related posts about php

Related posts about safe