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? Link to comment https://forums.phpfreaks.com/topic/218588-shell_exec-problem/ 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. Link to comment https://forums.phpfreaks.com/topic/218588-shell_exec-problem/#findComment-1133849 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.