Lost Password?


Go Back   CodeCall Programming Forum > Web Development Forum > PHP Forum

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.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-19-2008, 05:22 PM
pragan pragan is offline
Newbie
 
Join Date: Jun 2008
Posts: 3
Rep Power: 0
pragan is on a distinguished road
Default php

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #2 (permalink)  
Old 08-20-2008, 03:39 AM
bvaessen bvaessen is offline
Newbie
 
Join Date: Jul 2008
Location: Limburg
Posts: 27
Rep Power: 2
bvaessen is on a distinguished road
Default Re: php

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 08-26-2008, 05:14 AM
sohel04 sohel04 is offline
Newbie
 
Join Date: Aug 2008
Posts: 3
Rep Power: 0
sohel04 is on a distinguished road
Default Re: php

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.
__________________
irs tax problem poker casino
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 09-03-2008, 08:22 AM
tecktalk tecktalk is offline
Learning Programmer
 
Join Date: May 2008
Posts: 64
Rep Power: 2
tecktalk is on a distinguished road
Default Re: php

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

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


All times are GMT -5. The time now is 02:35 PM.

Contest Stats

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

Contest Rules

CodeCall Goal

Goal: 100,000 Posts
Complete: 97%

Ads