title: PHP command line run does not show errors
body: <p>If I run this program on Centos as "php file.php" it shows no output but php -l shows it has errors(; after EOT missing). How do I enable error reporting in this case?</p>
  
  <pre><code>&lt;?php
  
  ini_set('display_startup_errors',1);
  ini_set('display_errors',1);
  error_reporting(-1);
  $str = $_POST['name'];
  
  file_put_contents("out.txt",$str);
  
  print  &lt;&lt;&lt;EOT
  &lt;html&gt;&lt;body&gt;&lt;h1&gt;You've entered $str&lt;/h1&gt;&lt;/body&gt;&lt;/html&gt;
  EOT
  </code></pre>
  
  <p>I've gone through: <a href="https://stackoverflow.com/questions/845021/how-to-get-useful-error-messages-in-php">How can I get useful error messages in PHP?</a></p>