From: friendica Date: Thu, 23 Aug 2012 23:36:13 +0000 (-0700) Subject: handle Windows proc_run X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1b0dd6f2ec4d37711d14e96e9ed54eb84cdf97e3;p=friendica.git handle Windows proc_run --- diff --git a/boot.php b/boot.php index ef13d1fa69..7e76f332a9 100644 --- a/boot.php +++ b/boot.php @@ -1476,7 +1476,10 @@ if(! function_exists('proc_run')) { $args[$x] = escapeshellarg($args[$x]); $cmdline = implode($args," "); - proc_close(proc_open($cmdline." &",array(),$foo)); + if(get_config('system','proc_windows')) + proc_close(proc_open('start /b ' . $cmdline,array(),$foo)); + else + proc_close(proc_open($cmdline." &",array(),$foo)); } }