RE: [PHP] probs with exec(), system() etc... [again]
| From: | Grimes, Dean | Date: | Mon, 08 Oct 2001 13:07:19 +0000 |
| Subject: | RE: [PHP] probs with exec(), system() etc... [again] | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-70352@lists.php.net to get a copy of this message | ||
Here is the one I sent to you:
These commands return the results into an array:
passthru("crontab -l",$var);
$var is an array where each element is one word of the result.
You can use something like:
passthru("crontab -l",$var);
for ($x=0; $x < count($var); $x++) echo $var[$x];
That should give you what you want.
Dean
-----Original Message-----
From: Christian Dechery [mailto:cdechery@easynet.com.br]
Sent: Saturday, October 06, 2001 1:15 PM
To: php-general@lists.php.net
Subject: [PHP] probs with exec(), system() etc... [again]
I posted yesterday a message about some probs with exec() system() etc..
but I lost all the emails coming from the list... and would like that - if
someone responded - to send it again to me, thanks...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net