title: PHP Can't find file
body: <p>Problem 1:
  I got this code</p>
  
  <pre><code>&lt;?php
  $count_my_page = ("adminpanel/hitcounter.txt");
  $hits = file($count_my_page);
  $hits[0] ++;
  $fp = fopen($count_my_page , "w");
  fputs($fp , "$hits[0]");
  fclose($fp);
  ?&gt;
  </code></pre>
  
  <p>Its in a file called <code>/beta/</code> but i need it to find the folder <code>/adminpanel/</code> i tried using <code>/../</code> and <code>//</code> it did not work. I created the error reporting file and this is the output:</p>
  
  <pre><code>Warning: file(//adminpanel/hitcounter.txt): failed to open stream: No such file or directory in /home/u463251352/public_html/beta/index.php on line 3
  
  Warning: fopen(//adminpanel/hitcounter.txt): failed to open stream: No such file or directory in /home/u463251352/public_html/beta/index.php on line 5
  
  Warning: fputs() expects parameter 1 to be resource, boolean given in /home/u463251352/public_html/beta/index.php on line 6
  
  Warning: fclose() expects parameter 1 to be resource, boolean given in /home/u463251352/public_html/beta/index.php on line 7
  </code></pre>
  
  <p>How do i fix this?</p>