View Full Version : php + win application

12-12-2003, 09:20 PM
i have a 3 party win application (no code just exe).

apache and php installed on same machine

is there any way i can interact with this sw from my php scripts

means send some data and collect output ?

possible ?


12-13-2003, 01:14 AM
depends on the app , if its a command line application you can exec() it at grab the returned results , but only if it produces output to stdout or to file ... eg

exec( 'dir' , $yaks ) ;
print_r( $yaks ) ;

or you can use the COM extension to talk to some windows applications , but documentation is scarce and unless you already have say VB COM experience its an uphill struggle (to change soon we hope with a combined win32_std extension)