[thelist] Running exe files from php

Aleem Bawany aleem.bawany at utoronto.ca
Tue Feb 4 18:51:00 CST 2003


>> I need to run an exe file from a PHP page.  How would I
>> do this?  I have tried passthru("C:\path\program.exe",
>> $results); but results always comes back as 1.  What I
>> am I doing wrong?

try this:
$result = shell_exec("program.exe");

aleem

[ http://members.evolt.org/aleem/ ]




More information about the thelist mailing list