Thanks for your reply and example.
1. I can't get it to work (when trying to run the exec() line, it sometimes hangs and sometimes just skips the exec() line).
2. It doesn't throw ANY error (not to the browser when I run it with IE and not to the output window when running it with MAGUMA IDE)
3.I tried to run (just to eliminate other possible errors in my 2.php script) the win calculator, and again, it did nothing(skpipped the line).
exec ("start cmd /c C:\WINNT\system32\calc.exe");
( I noticed, that php is like "egnoring" this line [even when I try to run executable that doesn't exist, it still, just skips the exec line without reporting any error).
exec ("start cmd /c C:\WINNT\system32\calcsssssssss.exe");
As you suggested, I set the safe mode vars in c:\WINNT\php.ini (I use WIN 2000) to:
safe_mode = off
safe_mode_gid = Off
safe_mode_allowed_env_vars = PHP_
safe_mode_protected_env_vars = LD_LIBRARY_PATH
and the error reporting to:
error_reporting = E_ALL
display_errors = On
display_startup_errors = On
log_errors = On
log_errors_max_len = 1024
ignore_repeated_errors = Off
ignore_repeated_source = Off
report_memleaks = On
track_errors = On
;html_errors = Off
;docref_root = "/phpmanual/"
;docref_ext = .html
;error_prepend_string = "<font color=ff0000>"
;error_append_string = "</font>"
;error_log = filename
;error_log = syslog