google search in PHP.

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
loozi
Forum Newbie
Posts: 10
Joined: Sun Feb 24, 2008 4:04 am

google search in PHP.

Post 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.
nincha
Forum Contributor
Posts: 191
Joined: Fri Mar 28, 2003 12:30 pm
Location: CA, USA

Re: google search in PHP.

Post by nincha »

CURL, Client URL Library Functions
loozi
Forum Newbie
Posts: 10
Joined: Sun Feb 24, 2008 4:04 am

Re: google search in PHP.

Post 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.
nincha
Forum Contributor
Posts: 191
Joined: Fri Mar 28, 2003 12:30 pm
Location: CA, USA

Re: google search in PHP.

Post 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.
Post Reply