1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2000
    Rep Power
    How can i build a script to enable full text search within my website? Where can i find a manual to do this?

  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2000
    Ontario, Canada
    Rep Power
    A full text search?! I'll just say 'ouch' for the system. I'm sure you're aware that it's simple to create a meta tag search engine, but a "full text" search engine would require the script to access every ascii file on the server. There's a simple way to find results here:

    $retval = system("cat $filename[x]|grep '$SearchString'");
    if (strlen($retval) > 0) { $return[x] = $filename[x]; } else { ... }

    Probably won't work exactly as shown, but I'm sure you'd get the idea.

    To alcohol! The cause of, and solution to, all of life's problems. -- Homer Simpson

Similar Threads

  1. Replies: 3
    Last Post: February 17th, 2004, 10:08 AM
  2. help with tables and wordwrapping
    By junkedBrian613 in forum PHP Development
    Replies: 2
    Last Post: February 15th, 2004, 05:42 PM
  3. Simple find and replace word search for a text file with php?
    By rabid lemming in forum PHP Development
    Replies: 4
    Last Post: February 1st, 2004, 09:37 PM
  4. Dynamic search, php mysql
    By jonny5005 in forum PHP Development
    Replies: 5
    Last Post: January 26th, 2004, 10:17 PM
  5. Passing attachment text from webserver to PHP executor
    By Swaminathann in forum PHP Development
    Replies: 0
    Last Post: January 24th, 2004, 12:29 AM

IMN logo majestic logo threadwatch logo seochat tools logo