Hi all,
I have run into some problems assigning the output of a system command to a variable with PHP.
$var=system("whois site"); echo "var is: $var";
returns: output from whois followed by var is:
$var appears to be empty.
Any ideas???
have u tried redrecting the output to a file then reading the file? That should work.
I managed to get it sorted out using popen and pclose...
Thanx for your response
I ran into the same problem.. What did you do to return the whois info as a variable?