Need help in php web search

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
Titus2go
Forum Newbie
Posts: 2
Joined: Mon May 07, 2007 1:02 am

Need help in php web search

Post by Titus2go »

To php programmers,

Hi all, This is Titus Cheng.

I got a problem here and I still can't find the answer, I hope someone can help me with this.

I want to do a search script using php. What it does is it will go out to certain website I specify and collect certain information from them.

So let's say I want to know the price of a shoe and I know several website that are selling this shoe. So my search script will go to these websites and just collect the information about the price and display it in a table.

I am not sure where to start, can anyone help me with this. I can't find examples to learn from...
User avatar
neel_basu
Forum Contributor
Posts: 454
Joined: Wed Dec 06, 2006 9:33 am
Location: Picnic Garden, Kolkata, India

Post by neel_basu »

file_get_contents() on those Website use regex to get links (e.g. <a href="http://site.com/shoes") that contains shoes and grab the texts that contain Shoes.
Titus2go
Forum Newbie
Posts: 2
Joined: Mon May 07, 2007 1:02 am

Post by Titus2go »

Hey neel_basu,

can you give me a more specific example?
Post Reply