note 32759 added to ref.exec
| From: | akumainsanity at hotmail dot com | Date: | Fri, 06 Jun 2003 01:11:00 +0000 |
| Subject: | note 32759 added to ref.exec | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-49830@lists.php.net to get a copy of this message | ||
Hi, I know this is a PHP forum, but maybe you can help me. My question is: is there an analog
command in C/C++ for PHP's shell_exec?
I know there's the system() command in C/C++, but it doesn't return the complete output as
string.
For example, how would you "translate" this from PHP to C/C++?
$var = shell_exec("ls"); //$var will contain the output string
Thanx
L. Molina
----
Manual Page -- http://www.php.net/manual/en/ref.exec.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+32759
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+32759&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+32759&report=yes