codrgii Posted November 13, 2010 Share Posted November 13, 2010 I'm trying to call a command using shell_exec by doing the following- shell_exec("C:\\myprogram.exe -t")or die('error'); but that doesn't work, as it returns 'error'. The command "C:\\myprogram.exe -t" works perfect when i call it myself using the cmd.exe but not when i try using it in php with shell_exec. Safe mode is off and i'm using apache as my php webserver. Does anyone know what the problem is here and if not then is there any other ways of executing myprogram.exe in php? Quote Link to comment Share on other sites More sharing options...
requinix Posted November 13, 2010 Share Posted November 13, 2010 Are you sure that the program isn't running? I think it is. Are you sure that you know how shell_exec works? I think you don't. Quote Link to comment 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.