title: file doesn't open using PHP fopen
body: <p>i have tried this:</p>
  
  <pre><code>    &lt;?php
  $fileip = fopen("test.txt","r");
  
  ?&gt;
  </code></pre>
  
  <p>this should have opened the file in read only mood but it doesn't
  the test.txt file is in same folder as that of index.php (main project folder)</p>
  
  <p>the file doesn't open </p>
  
  <p>and when i put echo like :</p>
  
  <pre><code>echo $fileip;
  </code></pre>
  
  <p>it returned </p>
  
  <p>Resource id #3 </p>