PHP Error in Atom Editor

0

I'm trying out the Atom editor for nominations, I've installed the essential packages but it's giving error when I type PHP codes. What can I do to resolve this problem?

    
asked by anonymous 27.12.2017 / 19:55

1 answer

0

This means that environment variables do not have the path of php, so add first locate the folder where PHP is, assuming it is c:\php\php.exe copy only c:\php , now do the following

  • Right-click / My Computer and Properties
  • On the left side menu, click Advanced System Settings
  • Look for a button called Environment Variables , click it
  • Look for the PATH variable and double-click it should return something like this:

      C: \ Users \ InMinitor \ AppData \ Local \ GitHub \ PortableGit_f02737a78695063deace08e96d5042710d3e32db C: \ Users \ InMail \ AppData \ Roaming \ \ Program Files \ LLVM \ bin

Then at the end add ;C:\php; , like this:

  C: \ Users \ InMinitor \ AppData \ Local \ GitHub \ PortableGit_f02737a78695063deace08e96d5042710d3e32db C: \ Users \ InMail \ AppData \ Roaming \ \ Program Files \ LLVM \ bin; C: \ php;

Click Ok on both windows until you close everything, then log off Windows and log in then PHP will be available globally.

    
27.12.2017 / 22:33