(This is a respond "again" message because I think I made it wrong the first time: my first respond message isn't in the news since yesterday.)

There is some changes compared to using backslahes but it doesn't work.

Using backslashes
php.ini
safe_mode_exec_dir = "c:\wwwroot\tests\bin"

myphp.php
$retstr = exec('C:\wwwroot\tests\bin\myprogram.exe 2>&1',$retval);
$retstr = system('C:\wwwroot\tests\bin\myprogram.exe 2>&1',$retval);

When safe_mode=0
exec() $retval is "Hello World" and system() $retval is False (although "Hello World" is displayed).
When safe_mode=1
both $retval are False and there isn't any echo.

Using forward slashes

When safe_mode=0
The same as above.
When safe_mode=1
exec() $retval is False BUT system() $retval is True. There is no echo anyway :(

So system() $retval is False always when there is echo and sometimes when there isn't, and is True sometimes when there isn't echo.

Does this make any sense for anyone!?

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to