About exec function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello, I'm designing a website with php and the critical point of the design is to execute a program in the server, so after execution is finished, server will show the client some data and info. The program is called pspice, which analizes electronic circuits, works in msdos and in order to call him you need to write in the command the input file (which is created before we call the program) and the output file, which can have the same name as the input file, since they have a different extension. If everything works correctly after the execution of the proper command, a .out (the output file written in the command) file should be created with the data the server would later provide to the client.
I have got to execute the program using the line:

exec('c:\WINDOWS\\SYSTEM32\\cmd.exe /c start c:\\PHP\\PSPICE\\pspice1.exe ej1 ej1')

The problem I have is that the execution never ends. The cmd window with the execution of the program appears and never ends, just keep simulating (and the execution should be over in less than a second). The .out file is created but it is empty. How can I make the execution of the program stop and continue executing the rest of the code of my php file?

Thanks!

_________________________________________________________________
Descubre la descarga digital con MSN Music. Más de un millón de canciones. http://music.msn.es/

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux