RE: [PHP] Using system
| From: | esctoday.com | Wouter van Vliet | Date: | Wed, 17 Sep 2003 13:55:23 +0000 |
| Subject: | RE: [PHP] Using system | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-162867@lists.php.net to get a copy of this message | ||
Don't think there's one function for it .. Though, you may want to try the
output buffers.
ob_start();
( .. Exec here ..)
$Var = ob_end_clean();
,
Wouter
-----Original Message-----
From: Uros [mailto:uros.gruber@sir-mag.com]
Sent: Wednesday, September 17, 2003 3:18 PM
To: PHP General list
Subject: [PHP] Using system
Hello!
I'm pulling my hair. What is the right syntax to set output of some system
call to variable.
I tried everything (system, shell_exec,exec) and always get output to
screen.
Please help.
PHP version 4.3.3 CLI
--
Best regards,
Uros
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php