I would like a help from someone who knows how to ...

I want a PHP Search that does sarch for a specific keyword or something inside a directory with full of .txt files and gives the output of all Searched files with matched words with a Link where you can vist ! if someone has the time and willing to help me thank you very much in regards :)

This seems incredibly inefficient. I can think of three ways to do this:

  1. Each time you want to perform a search, open each text file, one by one, search if the word exists in that file, and then spit out the files that matched.
  2. Create a database (e.g. MySQL) in advance of all the words in each text file. Update the database based on how often the text files may change. Each time you want to perform a search, simply query the database for which text files match the word(s) being searched for.
  3. Use a third-party search indexer such as Sphinx or Lucene.
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.