使用shell_exec从'php -l'检查语法读取输出

时间:2015-01-11 12:19:57

标签: php

我想使用shell_exec('php -l test.php')检查语法; 当我使用某事时

$rc = shell_exec('php -l test.php');

它仅返回 '错误解析test.php' ,但不返回错误详细信息。如何阅读这些错误详情?

提前完成

0 个答案:

没有答案
相关问题