Thanks for replying.
I checked the permission and it looks OK. Besides system permission, is there something else I need to set in WinNT?
My guess is that it has nothing to do with permission because the temp.dxf file was created and several lines was written. But for whatever reasons, after writing 60+ lines, the program stops. This only occures for WinNT but not Win2000.
It was as if a timeout occurred. But I have check to make sure that timeout in php.ini has plenty of time.
I have also tried different combination of ' ' operators but without any luck. I tried using system() but got the same results. I even tried PHPShell (http://www.gimpster.com/php/phpshell/index.php) but it returns the same result.
In short, I believe the exec() ran, the phptoedit.exe command ran, the input file was read in correctly and the output file was created. But when phptoedit.exe starts to write into the output file, after several lines later, it just stops.
Any suggestions?
BRegards,
James