/    Sign up×
Community /Pin to ProfileBookmark

hi,
I am creating search engine with all details that means if i give any name it will search all website like google but my code is working only in same website i want to do the same thing like google can any one tell me how to do this

Thanks in advance
punitha pary

to post a comment
PHP

1 Comments(s)

Copy linkTweet thisAlerts:
@SyCoJan 05.2009 — First you'll need to invest in a server farm and team of people to run it. Next you need to spider the entire web and store the pages locally. Start at any website, perhaps ask users to submit sites to give starting points. Check you database of link to see if this page is due a re-spider. Then parse the HTML for links. When you find a link you add it to a database to be opened at a later time.

Once you have a few billion pages parsed and stored locally you're ready for the next step. Now when a user searches for a term you check your local cache of the entire internet for that term and bring it back in a split second and all related items ordering by relevance and omitting obvious spam attempt at gaming the results.

Of course copying the pages locally is technically copyright infringement but if you can provide huge amounts of traffic, no one will care.

Or use Google's API.

Or you can use cURL to send the query to Google like this
[CODE]http://www.google.com/search?q=my%20search%20term[/CODE]
and parse the results with PHP. It might be easier than saving 4,000,000,000 pages to you server.
×

Success!

Help @punithapary spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.28,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...