Well, I don't finally know why but the problem is the "echo hello" in
the batch (?!).
If I don't use system("example.bat") but system("cmd") then I can see in
the browser the two first lines of the shell: "Microsoft Windows 2003..."
It also works to call an executable.
Contrary to what was expe
Hello again.
I have read that cmd.exe is involved
Now I have given privileges to IUSR_xxx on cmd.exe too and the return
value is 1.
Before that, when ISR_xxx had only privileges on example.bat the return
value was -1.
Does anybody know what is the difference in the meaning of those return
Hello.
I try to execute a batch file by using a php with the fuction system()
but I am unable although safe_mode=0.
I am using a very simple example.bat that only makes echo hello and an
example.php that should call that batch, but system() allways returns -1.
These things have been checked.
After a lot of tests (some of them with very litle sense, you would
laugh at me but dispair makes that) I have found the answer:
¡¡path with forward slashes AND ended with slash!!.
with or without ", with a single or double // are the same.
safe_mode_exec_dir = c:/wwwroot/tests/bin/
safe_mode_e
Hello,
I have a problem with safe_mode. I want to execute some program while in
safe_mode=1 but I cann't. To make it as simple as possible I'm now using
myprogram.exe that is the typical "hello world" program.
It only works with safe_mode=0 and with safe_mode=1 nothing happens and
it returns n