title: How to log errors on hosting that does not support logs?
body: <p>I want to log errors to a file using this method:</p>
  
  <pre><code>$tpath = "/storage/my-errors.log";
  error_log("You messed up!", 3, $tpath);
  </code></pre>
  
  <p>I have set permissions on the path to <code>777</code> and it should save this value <code>"You messed up!"</code> into the file, but I can't figure it out.</p>
  
  <p>I made an error myself, but it did not get saved in the log file, just messaged <code>"You messed up!"</code>!</p>
  
  <p>I also tried:</p>
  
  <pre><code>ini_set("log_errors", 1);
  ini_set("error_log", "mypath");
  error_log( "Hello, errors!" );
  </code></pre>