php_syntax_checker icon indicating copy to clipboard operation
php_syntax_checker copied to clipboard

php is not recognized

Open Navelkar opened this issue 9 years ago • 7 comments

git

This error pops up while saving the php file in Sublime editor after the php_systax_checker

Navelkar avatar Jul 23 '15 13:07 Navelkar

I have same trouble... very disapointing...

slebreton38 avatar Jul 29 '15 16:07 slebreton38

me too,i move my php binary file then error appear,in terminal i can use php command

lifenglsf avatar Jan 20 '16 09:01 lifenglsf

You can edit PhpSyntaxChecker.py to change EXECUTE_COMMAND to your php.exe path

CodeBrauer avatar Aug 27 '17 18:08 CodeBrauer

:( no PhpSyntaxChecker.py found

antaNTby avatar Sep 14 '17 20:09 antaNTby

@antaNTby - Check the comments here #11

CodeBrauer avatar Sep 16 '17 10:09 CodeBrauer

Simply edit PhpSyntaxChecker.py file replace EXECUTE_COMMAND = "php -l"; to EXECUTE_COMMAND = "C:/xampp/php/php.exe -l" (you may have different path for php.exe)

How to edit the PhpSyntaxChecker.py

  • Install PackageResourceViewer by Package Control: Install Package
  • Press CMD+Shift+P
  • Type prvor for PackageResourceViewer: Open Resource
  • Search for PHP Syntax Checker
  • Press enter and select phpSyntaxChecker.py

Now you should be able to edit the file

Credit goes to @CodeBrauer

nikhere1 avatar Aug 27 '18 09:08 nikhere1

This should be in readme imo

Sojtin avatar Aug 31 '18 09:08 Sojtin