I don't know if this will be helpful or not - I found it in the manual:
[EMAIL PROTECTED]
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:[EMAIL PROTECTED]]
Sent: Friday, August 17, 2001 4:29 AM
To: '[EMAIL PROTECTED]'
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]