PHP exec( ) problems!
Posted on 2003-02-27
When I use the exec() call on my Windows 2000 box
in the following form:
it works perfectly. Even if "command" is an incorrect command string $results, as you would expect, will contain the error (ie. Bad command or file name). But when I use the same structure on Windows 98 only successful "simple" commands work. Nothing is returned at all when there is an error, the $results array is always empty. This is a problem as I am processing a XML validation using LIBXML and I am interested in finding if there are any errors.
In the exec call listed above the additional string "2>&1" is supposed to redirect error output to the standard console output. It doesn't seem that this works in the DOS on 98, is there any way I can return errors to the $results array.
Your help is much appreciated