RE: [PHP] Dnsquery

From: Date: Fri, 17 Aug 2001 08:37:46 +0000
Subject: RE: [PHP] Dnsquery
Groups: php.general 
Request: Send a blank email to php-general+get-63155@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; HTH Jon -----Original Message----- From: J.Mueller, pro.vider.de GmbH [mailto:j.mueller@pro.vider.de] Sent: 17 August 2001 09:29 To: 'php-general@lists.php.net' Subject: [PHP] Dnsquery Hello, I've tried to execute the system function dnsquery, which works fine from a shell: % dnsquery -h domain.net ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 61611 ;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 2, ADDITIONAL: 2 ;; domain.net, type = ANY, class = IN domain.net. 2D IN NS NS2.domain.net. domain.net. 2D IN NS NS1.domain.net. domain.net. 2D IN NS NS2.domain.net. domain.net. 2D IN NS NS1.domain.net. NS2.domain.net. 2D IN A 198.182.225.2 NS1.domain.net. 2D IN A 204.107.140.2 but not with PHP-functions, e.g. system("dnsquery -h domain.net"); exec("dnsquery -h domain.net"); There is no output at all. I'm using FreeBSD 4.2 Server, Apache 1.3.11, PHP 4.04 Does anyone have an idea how I can get this work?

« previous php.general (#63155) next »