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
@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.