Re: exec command part 2?
| From: | Daniel R. Anderson | Date: | Sun, 27 Apr 2003 13:58:18 +0000 |
| Subject: | Re: exec command part 2? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-145418@lists.php.net to get a copy of this message | ||
Have you tried imploding? I.e.
<?php
$result = implode($result);
echo $result;
?>
On Sun, 2003-04-27 at 09:41, Inpho wrote:
> 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 -
> >
> >
> >
> >
>
>