I'm building a setup process that needs to know where PHP (php-win.exe) is installed on Windows. It asks the user for the location, but ideally it will test a few obvious locations first.
Obvious install paths include:
Does anyone have either a list or more suggestions?
[this is being used by a command line tool as opposed to an installer which would make it easy just to select the folder].
The most common path I've seen for PHP on Windows is:
C:\php
If you're checking for wamp you could also check for xampp.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With