Script which reads database and creates a search engine

Discussion in 'PHP' started by becoolufull99, Jun 24, 2010.

  1. #1
    I have lots of files uploaded in my server and I want to make a search engine of them. I just need an automatic script which will crawl the pages daily and put them in search engine database. And than I could use the search engine.

    Is there any readymade script like that or can you make the script?
     
    becoolufull99, Jun 24, 2010 IP
  2. clox.c

    clox.c Peon

    Messages:
    30
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    clox.c, Jun 24, 2010 IP
  3. becoolufull99

    becoolufull99 Peon

    Messages:
    11
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    thankx buddy. trying it. Let me tell you I dont have any database of my files. Just files are uploaded in a folder.
     
    becoolufull99, Jun 24, 2010 IP
  4. becoolufull99

    becoolufull99 Peon

    Messages:
    11
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I installed it. Not very good one. I need someone which can index all the contents from a folder.
     
    becoolufull99, Jun 24, 2010 IP
  5. roopajyothi

    roopajyothi Active Member

    Messages:
    1,302
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    80
    #5
    what content you're talking about??
    Instead of Db it must crawl from a folder???
     
    roopajyothi, Jun 25, 2010 IP
  6. becoolufull99

    becoolufull99 Peon

    Messages:
    11
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Its because I dont know how to make a database. So, Yes it must crawl from folders. I have php pages in a folder.
     
    becoolufull99, Jun 26, 2010 IP
  7. roopajyothi

    roopajyothi Active Member

    Messages:
    1,302
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    80
    #7
    Nope!
    if you're going to use your own custom site just use google custom search engine its free and easy :)
     
    roopajyothi, Jun 26, 2010 IP
  8. happpy

    happpy Well-Known Member

    Messages:
    926
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    120
    #8
    i can program such a script customly for you. PM me with your site´s url and your exact idea (skype?).
     
    happpy, Jun 26, 2010 IP
  9. sudip03

    sudip03 Peon

    Messages:
    155
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #9
    but i think if you can make a database of your file name then your work gets simpler.
    1)Just fetch the file name one by one from DB
    2)read those files using fread()
    3)use preg_match_all() for finding your query on that page
    4) if found display it.
     
    sudip03, Jun 26, 2010 IP