Hi, I have a macOS Monterey and installed XAMMP. When I try to run PHP server in VS Code I get a message PHP not found. When I ask to open page in Live Server I get a /listing directory.
Thank you.
Altrea wrote:Hi,
You can keep VS Code to edit your PHP files.
But the functionality to run PHP files is nearly independend to XAMPP itself. VS Code does have a setting to set the PHP executable path. This can also be the PHP interpreter shipped with XAMPP. But you don't need all the other things XAMPP comes with.
Wim Tewinkel wrote:{"php.validate.executablePath": "C:\\xampp\\php\\php.exe",
"php.executablePath": "C:\\xampp\\php\\php.exe"
}
Users browsing this forum: No registered users and 6 guests