LiteSpeed Support Forums

LiteSpeed Support Forums (http://www.litespeedtech.com/support/forum/index.php)
-   General (http://www.litespeedtech.com/support/forum/forumdisplay.php?f=25)
-   -   Syntax check on litespeed's PHP (http://www.litespeedtech.com/support/forum/showthread.php?t=5994)

optize 06-02-2012 08:47 AM

Syntax check on litespeed's PHP
 
On a non-cPanel host, we only run Litespeed's version of PHP... However when troubleshooting PHP scripts, we typically run php -l script.php to check for syntax errors.

This flag isn't there in the litespeed version. Is there another binary that can check the syntax without me having to install a copy of a non-LSWS PHP or can it be added in?

mistwang 06-12-2012 10:41 AM

can you use CLI PHP for this purpose, -l option is not supported by lsphp yet.

mistwang 06-12-2012 10:42 AM

it should not be difficult to add that option if you knew C programing.


All times are GMT -7. The time now is 08:31 AM.