title: searching through a text file, and display the results?
body: <p>if get an input from the user and i wanted to search the file for any results, and display the results:</p>
  
  <pre><code>$searchValue = $_POST['search'];
  
  $handle = @fopen("home.txt","r");
  # read line by line
  while (($buffer = fgets($handle, 4096)) !== false &amp;&amp; // the condtion for the $searchValue) {
      echo '&lt;tr&gt;';
          $array = explode(',', $buffer);
      foreach($array as $val){
           echo '&lt;td&gt;'.$val.'&lt;/td&gt;';      
          } 
      echo '&lt;/tr&gt;';       
  }
  </code></pre>
  
  <p>i dnt get what i have to do, i just want to display the rows in the text file with relevent $searchvalues</p>