Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

php is not recognized #10

Open
Navelkar opened this issue Jul 23, 2015 · 7 comments
Open

php is not recognized #10

Navelkar opened this issue Jul 23, 2015 · 7 comments

Comments

@Navelkar
Copy link

git

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

@slebreton38
Copy link

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

@lifenglsf
Copy link

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

@CodeBrauer
Copy link

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

@antaNTby
Copy link

:(
no PhpSyntaxChecker.py found

@CodeBrauer
Copy link

@antaNTby - Check the comments here #11

@nikhere1
Copy link

nikhere1 commented Aug 27, 2018

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

@Sojtin
Copy link

Sojtin commented Aug 31, 2018

This should be in readme imo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants