exec() cordova command via php on Windows

  cordova, exec, php, windows, xampp

I use xampp on my Windows system and i try to run command cordova --version via php exec() function. I tried run cordova directly from path C:/MyUser/AppData/Roaming/npm/cordova --version but it doesn’t work.

With this two cases exec returns empty output, what’s wrong?

Source: Ask PHP

LEAVE A COMMENT