$WINE_APP = '/usr/bin/wine'; $LFS_DIR = '/opt/lampp/htdocs/wine-c/lfs/'; $LFS_APP = $LFS_DIR . 'LFS.exe'; function StartServer($server) { global $LFS_APP, $WINE_APP; if (CheckSetupExists($server) == True) $shell_result = exec('bash -c "nohup ' . $WINE_APP . ' ' . $LFS_APP . ' /cfg=lfs_setup' . $server . '.cfg > /dev/null & echo \$!"'); }