用js打开,但会有安全警告
具体写法到javascript版面faq区找

解决方案 »

  1.   

    function execInBackground($path, $exe, $args = "") {
       
       if (file_exists($path . $exe)) {
           chdir($path);
           if (substr(php_uname(), 0, 7) == "Windows"){
               pclose(popen("start \"bla\" \"" . $exe . "\" " . escapeshellarg($args), "r"));    
           } else {
               exec("./" . $exe . " " . escapeshellarg($args) . " > /dev/null &");    
           }
       }
    }