note 15569 rejected and deleted from function.system by zak
| From: | zak@php.net | Date: | Tue, 18 Sep 2001 08:44:56 +0000 |
| Subject: | note 15569 rejected and deleted from function.system by zak | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-18110@lists.php.net to get a copy of this message | ||
<?PHP
$command="ping lunarstorm.se -t ttl -c1 | tail -1 | awk '{print $4 " "
$5}'";
$output = system($command, $test);
system("exit(0)");
echo "$output";
?>
How do i hide the result i get from system() and just echo the reslut with: $output?
I want to use this script to store the data in a MYSQL database.