title: php function file_exists not working
body: <p>i am trying to check a file to a certain location if the file does not exist. however the file_exist always returns false..</p>
  
  <p>function added for check file exist</p>
  
  <pre><code>$file_path = "myconfigfile.config";
  private function LoadFile( $file_path ) {
      $contents = '';
      if(file_exists($file_path)) {
          $handle = fopen( $file_path, "r" );
          while( !feof( $handle ) ) {
              $contents .= fread( $handle, 8192 );
          }
          @fclose( $handle );
      } 
      return $contents;
  }
  </code></pre>
  
  <p>both files are exist in same folder but still not give proper output</p>
  
  <p>please help me on this</p>