Hello RiggsFolly,
I am using both Sublime Text 3 and Visual Studio Code, but am having problems running PHP in VSCode as it requires one to declare the path to PHP in Environment which I have done. Now, when I use ST-3 and Wampserver, Wampserver shows an error:
Sorry,
There is an error.
There is Wampserver path (c:/wamp64) into Windows PATH environment variable: (C:\wamp64\bin\php\php7.2.4\php.exe)
It seems that a PHP installation is declared in the environment variable PATH
C:\wamp64\bin\php\php7.2.4\php.exe
Wampserver does not use, modify or require the PATH environment variable. Using a PATH on Wampserver or PHP version is detrimental to the proper functioning of Wampserver.
Is there any other way to configure PHP so that no errors are encountered?
"C:\wamp64\bin\php\php7.2.4\php.exe"---->>path directly from C:
"C:\\wamp64\\bin\\php\\php7.2.4\\php.exe" ---->>path set in the PATH Environment Variable
If I would use the batch file as you suggested on Stackoverflow, where would I need to place the batch file and would require that I also change the PATH in the Environment Variable? And would that not conflict with Wampserver?
[stackoverflow.com]
"PATH=%PATH% says create a new PATH environmant variable with the current path i.e. %PATH% plus the new directory we want to add to it. Windows searches folders in the PATH to find executables i.e. 'php.exe' that it cannot find in the current working directory. – RiggsFolly"
I am using both Sublime Text 3 and Visual Studio Code, but am having problems running PHP in VSCode as it requires one to declare the path to PHP in Environment which I have done. Now, when I use ST-3 and Wampserver, Wampserver shows an error:
Sorry,
There is an error.
There is Wampserver path (c:/wamp64) into Windows PATH environment variable: (C:\wamp64\bin\php\php7.2.4\php.exe)
It seems that a PHP installation is declared in the environment variable PATH
C:\wamp64\bin\php\php7.2.4\php.exe
Wampserver does not use, modify or require the PATH environment variable. Using a PATH on Wampserver or PHP version is detrimental to the proper functioning of Wampserver.
Is there any other way to configure PHP so that no errors are encountered?
"C:\wamp64\bin\php\php7.2.4\php.exe"---->>path directly from C:
"C:\\wamp64\\bin\\php\\php7.2.4\\php.exe" ---->>path set in the PATH Environment Variable
If I would use the batch file as you suggested on Stackoverflow, where would I need to place the batch file and would require that I also change the PATH in the Environment Variable? And would that not conflict with Wampserver?
[stackoverflow.com]
"PATH=%PATH% says create a new PATH environmant variable with the current path i.e. %PATH% plus the new directory we want to add to it. Windows searches folders in the PATH to find executables i.e. 'php.exe' that it cannot find in the current working directory. – RiggsFolly"