Jump to content

shell_exec problem


codrgii

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.