I would like a little bit of help with formatting the output of a variable. This is just to further my knowledge as I am learning PHP and I just like to build things!
Its a Whois script - you can see it working here http://grunshaw.net/thumb/. As you can see, the output of the whois at the bottom is all run together.
The whois part of the code is:
Code: Select all
<?php
$domain = $_REQUEST['url'];
$output = shell_exec("whois $domain");
echo $output;
?>
If someone can help me, that would be great.
Best
James.