RE: [PHP] Dnsquery

From: Date: Fri, 17 Aug 2001 13:43:50 +0000
Subject: RE: [PHP] Dnsquery
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-63183@lists.php.net to get a copy of this message
I don't know if this will be helpful or not - I found it in the manual: simon@unixinside.com 25-Oct-2000 03:16 system() function doesn't return a string value, if you want to assign the output of a system command, try using: $a = /bin/ls -a; note the ` is a backtick, not a single quote Tom Malone Web Designer http://www.tom-malone.com -----Original Message----- From: J.Mueller, pro.vider.de GmbH [mailto:j.mueller@pro.vider.de] Sent: Friday, August 17, 2001 4:29 AM 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? Thanks very much. Juergen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#63183) next »