Making PHP 5 exec work on Windows

The following options are listed in random order, one of them may work:

1. If you see "Unable to fork..." give permissions to IUSR to the system32\cmd.exe file.
2. Copy "cmd.exe" to c:\php, and make sure c:\php is in PATH environment variable.
3. Make sure to give permissions to the output folder of the command. Give permissions to everyone if you are desperate.
4. Give permissions to IUSR to the command being executed.