Syntax check on litespeed's PHP

Discussion in 'General' started by optize, Jun 2, 2012.

  1. optize

    optize New Member

    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?
  2. mistwang

    mistwang LiteSpeed Staff

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

    mistwang LiteSpeed Staff

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

Share This Page