exec command part 2?

From: Date: Sun, 27 Apr 2003 13:41:50 +0000
Subject: exec command part 2?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-145417@lists.php.net to get a copy of this message
ok i'm part of the way there... can anyone help me with the rest?? this is what I have so far: exec("keygen 00-00-00-00-00-00", $result); print "$result"; all that outputs is "array" how do i get it to print the actual output. thanks - paul - "Inpho" <inphorm@gmx.net> wrote in message news:20030427050456.11541.qmail@pb1.pair.com... > Hey all, > > Simple Question here for you, i can't find out how to do it at php.net.... > > I want to call an .exe file from a script it's a keygenerator accepting a > MAC address as input and puts out a serial number as out put. in DOS you > would run it like this: > > c:\paul\source>keygen 00-00-00-00-00 > > it would output a serial number. > > what i want to do is call the keygen.exe file from a php script and print > the out put to the screen. > > any ideas? > > - paul - > > > >

« previous php.general (#145417) next »