title: PHP cannot use a scalar as an array warning issue
body: <p>I have an problem on my website i've made an hits counter :</p>
  
  <pre><code>$count = ("hits.txt"); 
  $clicks = file($count);
  if ($clicks &gt; 5){$clicks = 0;}
  $clicks[0]++;
  $fp = fopen($count , "w");
  fputs($fp , "$clicks[0]");
  fclose($fp);
  </code></pre>
  
  <p>but i receive this message : cannot use a scalar as an array warning issue</p>