I have a PHP script that creates other PHP files based on user input. Basically, there are files containing language specific constants (define) that can be tra
define
I had the same problem. The solution that worked for me was found in running-at-from-php-gives-no-output. I needed to add output redirection.
$output = exec("php -l $filename 2>&1");