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?
<?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 <<<EOT
<html><body><h1>You've entered $str</h1></body></html>
EOT
I've gone through: How can I get useful error messages in PHP?