title: Page not load while trying to read a file
body: <p>I need to read a file located in the localhost path whose strings are separated by ";".
  I am trying to define a function, the function should open the file, read a single string and put it in the second argument passed.<br>
  But from the validator I get a parse error:<br>
  Fatal error: Cannot redeclare readfile() in your code on line 13 </p>
  
  <pre><code>&lt;?php                                     
  function readfile($filename, $var)
  {
      $file=fopen($filename,"r");
      while($temp!=";")
      {
          $temp=fread($file,1);
          if($temp!=";")
              $result=$result . $temp;
      }
      fclose($file);
      $var=$result;
  }
  $filename="log.txt";
  readfile($filename,$nome);
  echo $nome;
  ?&gt;
  </code></pre>
  
  <p>What is wrong in this code?</p>