I’m running Windows 10, with a WSL2 Ubuntu instance. I do my development within the WSL2 instance with the “Remote – WSL” extension of Visual Studio Code. So my VSC is running as a WSL2 application, not as a Windows application. I have an additional remote server (I’ll refer to this as “Server X” which actually hosts/runs the PHP code.
Tag: windows-subsystem-for-linux
How can I start a WSL-based Linux executable from within PHP on Windows and capture its stdout?
I have a program that only works on Linux, and I have my development environment on Windows. When I run a WSL command from cmd in Windows it works as expected. When I run C:wsl echo “foo” in cmd.exe I get foo back via stdout. When I run the same command from within php via exec I don’t get any