| | |
Random Google Search
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Aug 2005
Posts: 18
Reputation:
Solved Threads: 0
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
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
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...
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...
Jayant Kumar Gandhi
My exams are over!!! I am back :)
My exams are over!!! I am back :)
![]() |
Similar Threads
- Desktop backgroud has been taken over, google search results being hijacked and more! (Viruses, Spyware and other Nasties)
- My blogsite does not comes in Google search (Search Engine Optimization)
- Google Search (Pay-Per-Click Advertising)
- See your Website in Google search results in 24h (Post your Resume)
Other Threads in the PHP Forum
- Previous Thread: Vcalendar_php_application_new_bie_request_information
- Next Thread: errors in phpbb
| Thread Tools | Search this Thread |
apache api array beginner binary body broken buttons cakephp checkbox class cms code cron curl database date date/time display dynamic ebooks echo email error file files folder form forms function functions global google href htaccess html image include insert ip javascript joomla limit link list login mail mediawiki menu mlm msqli_multi_query multiple mycodeisbad mysql number oop parameter paypal pdf php phpincludeissue problem query radio random recourse recursion regex remote script search seo server sessions sms source sp space speed sql static subdomain syntax system table tag tutorial update upload url validator variable vbulletin video web webdesign white wordpress xml youtube





