Aimless Posted May 22, 2010 Share Posted May 22, 2010 Hey, I'm trying to start an application, here's what I've got so far: $WshShell = new COM("WScript.Shell"); $oExec = $WshShell->Run("cd ".GAME_DIRECTORY." ; nohup ./".GAME_BIN_NAME." &", 0, $m); When I execute this code nothing happens, it doesn't seem to be starting the application. Can anyone tell me how to start my application, I first need to CD to .GAME_DIRECTORY. and then run .GAME_BIN_NAME. Quote Link to comment https://forums.phpfreaks.com/topic/202595-how-to-start-an-application-linuxphp5/ Share on other sites More sharing options...
teamatomic Posted May 23, 2010 Share Posted May 23, 2010 exec() HTH Teamatomic Quote Link to comment https://forums.phpfreaks.com/topic/202595-how-to-start-an-application-linuxphp5/#findComment-1062083 Share on other sites More sharing options...
Daniel0 Posted May 23, 2010 Share Posted May 23, 2010 COM is for Windows so it won't work on other platforms. Quote Link to comment https://forums.phpfreaks.com/topic/202595-how-to-start-an-application-linuxphp5/#findComment-1062087 Share on other sites More sharing options...
Aimless Posted May 23, 2010 Author Share Posted May 23, 2010 Can anyone give me a working example, of how to CD to .GAME_DIRECTORY. and then run .GAME_BIN_NAME. Can't seem to get exec() or shell_exec() to work. Any help appreciated. Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/202595-how-to-start-an-application-linuxphp5/#findComment-1062160 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.