title: error_log returning file not found in PHP
body: <p>When I am trying to log the error from my Mysql class its saying file not found </p>
  
  <p>even though the path is correct </p>
  
  <p>here is the path </p>
  
  <pre><code>protected function sql_query($query){
          if (mysqli_query($this-&gt;conn,$query)){
  
                  $last_id = mysqli_insert_id($this-&gt;conn);
                  return $last_id;
              }
              else
                  error_log(mysqli_error($this-&gt;conn) . "\n", 3, "../var/tmp/sql_error.log");
       }
  </code></pre>
  
  <p>So the folder looks like this </p>
  
  <pre><code>donations/api/dbHandeller.php
  </code></pre>
  
  <p>and the error log file is </p>
  
  <pre><code>donations/var/tmp/sql_error.log
  </code></pre>
  
  <p><strong>ERROR</strong></p>
  
  <pre><code> error_log(../var/tmp/sql_error.log): failed to open stream: No such file or directory in &lt;b&gt;C:\xampp\htdocs\donations\api\dbHandeler.php
  </code></pre>
  
  <p>Thanks </p>