944,041 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 3749
  • PHP RSS
Aug 9th, 2005
0

Random Google Search

Expand Post »
Hi there, i am looking for a random google search script,
which i have seen several month ago on a site, i couldn`t
remember.

Its very simple just graps some words from a dictonary file
and send it to google with a seach reply.

Maybe someone knows where i can find this or how to build
something like this with php?

Thanks,
bbds
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
BBDS is offline Offline
18 posts
since Aug 2005
Aug 12th, 2005
0

Re: Random Google Search

use file to open and get contents into an array.
use count to get number of lines/words
use srand and rand to get a random number.
modulo it with the count above to get final random number.
use this final random number with the array to get the string

now use the google api, to search and retirieve results. (google has source code available of how to use its api with php)

a thought: you might not want to build such useless pages, 'coz people dont need them. if you are looking for advertising or adsense $$$, i will like to tell you that google will come heavily on you, so better not to do something silly like this.
google/other search engines are modifying their algo's to penalize such size/pages heavily...
Reputation Points: 46
Solved Threads: 1
Junior Poster in Training
jayant is offline Offline
95 posts
since Nov 2003
Aug 13th, 2005
0

Re: Random Google Search

Thanks, for your help Jayant,

Great solution but i am a totally newbee coding or programming such a php script. Are there any easier solultions?

I don`t want to build such useless pages to cheat google adsense?
But thanks for the info!
Reputation Points: 10
Solved Threads: 0
Newbie Poster
BBDS is offline Offline
18 posts
since Aug 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: Vcalendar_php_application_new_bie_request_information
Next Thread in PHP Forum Timeline: errors in phpbb





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC