Page 1 of 1

google search in PHP.

Posted: Tue Mar 04, 2008 4:30 pm
by loozi
Hey, is it possible to do a google search in PHP then save each of the links that were found in a text file, thanks in advance.

Re: google search in PHP.

Posted: Tue Mar 04, 2008 4:44 pm
by nincha
CURL, Client URL Library Functions

Re: google search in PHP.

Posted: Tue Mar 04, 2008 4:52 pm
by loozi
nincha wrote:CURL, Client URL Library Functions
I tried that, but I need a code to organize all the urls I find in a single text file, I tried saving the log in a text file but all I get is a mess.

Re: google search in PHP.

Posted: Tue Mar 04, 2008 5:10 pm
by nincha
Consider parsing the string and taking what you need. Its a very CPU intensive process and rather brute force. The explode function might help.