note 15569 added to function.system

From: Date: Tue, 18 Sep 2001 08:43:52 +0000
Subject: note 15569 added to function.system
Groups: php.notes 
Request: Send a blank email to php-notes+get-18109@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. http://www.php.net/manual/en/function.system.php

« previous php.notes (#18109) next »