Re: [Fwd: Re: [PHP] error while reading google-search-results]

2003-03-08 Thread James
LWP is a perl thing. Curl is probably the best thing to use. Have you tried using googles php api which they provide free? http://www.google.com/apis/ "Jens Lehmann" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > James Holden wrote: > > > > > > Welcome to a mine field of problems :

Re: [Fwd: Re: [PHP] error while reading google-search-results]

2003-03-08 Thread Jens Lehmann
James Holden wrote: Welcome to a mine field of problems :-) 1. The url you have entered is invalid. Thats a good first check to make usually. Try /search?q=test to get that bit sorted. Ok, this was just a typo. :) 2. Google prevents known useragents from accessing it's content as it believe

[Fwd: Re: [PHP] error while reading google-search-results]

2003-03-07 Thread James Holden
Welcome to a mine field of problems :-) 1. The url you have entered is invalid. Thats a good first check to make usually. Try /search?q=test to get that bit sorted. 2. Google prevents known useragents from accessing it's content as it believes you are acting as a spider or a search engine s

[PHP] error while reading google-search-results

2003-03-07 Thread Jens Lehmann
For reading in and displaying a file $uri I use this short script: http://www.google.de?q=test'; echo implode('',file($uri)); ?> Of course this works well for almost every website, but I have problems reading in the results of google (for instance the URI above). The error message I get is: [07