diff options
author | Thomas Willingham <founder@kakste.com> | 2014-02-16 21:53:07 +0000 |
---|---|---|
committer | Thomas Willingham <founder@kakste.com> | 2014-02-16 21:53:07 +0000 |
commit | e40cdb2047c22a5cd7adbca16fa3c804d7b80509 (patch) | |
tree | cefcc99bca0de51eb0341fa830da397d22a6b951 | |
parent | 8080fdf55801e3ed6aec99ff5a1cfb31d29998f5 (diff) | |
download | volse-hubzilla-e40cdb2047c22a5cd7adbca16fa3c804d7b80509.tar.gz volse-hubzilla-e40cdb2047c22a5cd7adbca16fa3c804d7b80509.tar.bz2 volse-hubzilla-e40cdb2047c22a5cd7adbca16fa3c804d7b80509.zip |
Windows hack for proc_run() from Marshall
-rwxr-xr-x | boot.php | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -1574,8 +1574,13 @@ function proc_run($cmd){ $args[$x] = escapeshellarg($args[$x]); $cmdline = implode($args," "); - if(is_windows()) - proc_close(proc_open('cmd /c start /b ' . $cmdline,array(),$foo)); + + + if(is_windows()) { + $cwd = getcwd(); + $cmd = "cmd /c start \"title\" /D \"$cwd\" /b $cmdline"; + proc_close(proc_open($cmd, array(), $foo)); + } else proc_close(proc_open($cmdline." &",array(),$foo)); } |