Run a Ms-dos program and catch the output
Posted: Wed Oct 13, 2010 8:06 am
Hi
I need to run a ms-dos program (made in vc++, vs 2008, console mode) and catch the output. For instance if my program returns the 2 times a number i want my php page runs the program, send one value and verifies if the output is correct. I heard about procopen() function but I don't know much about it.
Any help?
Thank you
I need to run a ms-dos program (made in vc++, vs 2008, console mode) and catch the output. For instance if my program returns the 2 times a number i want my php page runs the program, send one value and verifies if the output is correct. I heard about procopen() function but I don't know much about it.
Any help?
Thank you