PHP retrieve external program data

Posted by kaykun on Stack Overflow See other posts from Stack Overflow or by kaykun
Published on 2010-05-06T02:52:03Z Indexed on 2010/05/06 2:58 UTC
Read the original article Hit count: 266

Filed under:

Hi, what I want to do is have a PHP script run a program and have it retrieve data somehow from it. For instance the program would parse data from a file and return the data for the PHP script to display.

So far I know to call exec("Program.exe"); but would I have to make it create a file with the data then have the PHP script call fopen and get it that way? Is there a better way to do it? Thanks

© Stack Overflow or respective owner

Related posts about php