From b39c0d54c07c1a89aa1e4ecaef134b96e4ed4b8a Mon Sep 17 00:00:00 2001 From: friendica Date: Sun, 2 Feb 2014 14:06:36 -0800 Subject: some windows fixes --- mod/setup.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'mod') diff --git a/mod/setup.php b/mod/setup.php index ca5566578..14572699e 100755 --- a/mod/setup.php +++ b/mod/setup.php @@ -373,7 +373,10 @@ function check_php(&$phpath, &$checks) { if (strlen($phpath)){ $passed = file_exists($phpath); } else { - $phpath = trim(shell_exec('which php')); + if(is_windows()) + $phpath = trim(shell_exec('where php')); + else + $phpath = trim(shell_exec('which php')); $passed = strlen($phpath); } $help = ""; -- cgit v1.2.3