RE: [PHP] exec command part 2?

From: Date: Sun, 27 Apr 2003 14:12:01 +0000
Subject: RE: [PHP] exec command part 2?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-145422@lists.php.net to get a copy of this message
> > > 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. > > > > Have you tried imploding? I.e. > > <?php > > $result = implode($result); > > echo $result; > > ?> > > It comes up with: > Warning: Wrong parameter count for implode() in /home/kg.php on line 4 So go look at the manual page and see how many parameters implode() requires and why. While your there, also read the array sections so you'll know what they are and how to print them out. You've got to do a little work on your own here. Realize that every code example posted here can't be just cut and pasted in your program and solve your problems. They are suggestions and you need to study them, determine how they work, then adapt them to your own program. ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/

« previous php.general (#145422) next »