title: php unlink. returns no error message and doesn't delete my file
body: <p>I'm simply trying to delete a file using PHP's unlink. I found an answer on here that told me the best way to do this and I implemented it.  Heres the code I am using.</p>
  
  <pre><code>$log_path = realpath($log_file);
  if (is_readable($log_path)){
      print file_exists($log_path);
      $deleted = unlink($log_path);
      print "Deleted:".$deleted;
      print "Exists:".file_exists($log_path);
  }
  </code></pre>
  
  <p>This just prints <code>1Deleted:exists:1</code>. I also tried to add in <code>print_r(error_get_last());</code> under the unlink, but this also returned nothing. All files in the directory are <code>chmod 777 *</code> and there are no other file handlers open. ....what the heck...</p>