|
||||||
| PHP Forum Use this forum to discuss all aspects of PHP Development. PHP is a server-side, cross-platform, HTML embedded scripting language that lets you create dynamic web pages. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
hi,
I am trying to write a script which can do the following. I do not have any idea of how to write it ..but have the idea of how it should/will work. I have a list of words in an mysql db(almost 1000 words). I need to take each word and then put in the search query of any search engine(for example ask.com) and store the result that appears under "related words"/"suggested words"/"narrow your search words" in a file. Example: If you search for the word "forum" in ask.com, we can see the url as forum - Ask.com Web Search and the search result page contains "Narrow Your Search" Roman Forum Free Forum .. ... etc. So I need to write a script that can take word by word from my mysql db and put it in the url (as below) and then store only the "result under "Narrow your search result" in a file. Ask.com Search Engine - Better Web Searchnextword&search=search&qsrc=0&o=0&l=dir Please let me know if its something possible and if I can have look at any examples..I would need to complete this as soon as possible. I can explain it in a more better way if the above explanation is not clear. Regards Last edited by pragan; 06-19-2008 at 05:25 PM. |
| Sponsored Links |
|
|
|
|||
|
Some basic knowledge of PHP and SQL is enough to tackle this in a couple of hours. Load a word from your table with sql (information on how to do this everywhere on the web), then include it in the url ("http://www.ask.com/q=$yourword&blabla"), and e.g. use curl to load the contents of the url. Information on this is e.g. in PHP tip: How to get a web page using CURL | Nadeau Software. Then just search in the contents for the "narrow your search" header and extract the terms you need.
Ben Vaessen :: Home Launch-IT :: Home |
|
|||
|
PHP and SQL is enough to tackle this in a couple of hours. Load a word from your table with sql (information on how to do this everywhere on the web), then include it in the and e.g. use curl to load the contents of the.
|
|
|||
|
Hmm ok pm me.. I can help you in this....If you wish we can talk together on this matter.. and can find a way out just same as your requirements.s.
_______________________ Virtual desktop pets arab chat |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| PHP 5 and OOP | Jordan | PHP Tutorials | 11 | 09-22-2008 02:58 AM |
| PHP 4 end of life announcement | Jordan | Programming News | 4 | 08-30-2007 10:55 AM |
| WingedPanther | ........ | 2753.6 |
| Xav | ........ | 2704 |
| Brandon W | ........ | 1702.32 |
| John | ........ | 1207.73 |
| marwex89 | ........ | 1175.24 |
| morefood2001 | ........ | 966.05 |
| dcs | ........ | 655.75 |
| Steve.L | ........ | 475.59 |
| orjan | ........ | 418.58 |
| Aereshaa | ........ | 383.54 |
Goal: 100,000 Posts
Complete: 97%