RE: Re[2]: [PHP] Dnsquery

From: Date: Fri, 17 Aug 2001 13:55:35 +0000
Subject: RE: Re[2]: [PHP] Dnsquery
Groups: php.general 
Request: Send a blank email to php-general+get-63186@lists.php.net to get a copy of this message
>> I think you need to assign it to a variable and then echo that: >> $dnsquery = exec("dnsquery -h domain.net"); >> echo $dnsquery; >> > This is from the manual: > "exec() executes the given command, however it does not output > anything" > Use system instead. Well, don't trust everything you read :-) These lines: $httpd = exec("ps -e | grep -c httpd"); $mysqld = exec("ps -e | grep -c mysqld"); fill $httpd and $mysqld with the current number of daemons running. Works fine on my Slackware box with PHP 4.0.6. Cheers Jon

« previous php.general (#63186) next »