title: PHP error: A non-numeric value encountered in file.php on line 180 in file_exists function
body: <p>I am getting this error in php that says</p>
  <pre><code>A non-numeric value encountered in file.php on line 180
  </code></pre>
  <p>Here is my code</p>
  <pre><code>$path = $pth + '/logo.png';
  if(file_exists($path)){
      echo 'yes';
  }
  else{
      echo 'no';
  }
  </code></pre>
  <p>I also got this error with other file operations also like <code>copy()</code> and <code>mkdir()</code>. Removing <code>.</code> and <code>/</code> makes them work fine.</p>
  <p>Any way to solve this error. Thanks in advance :)</p>