I am sure this is something obvious, however, I have tried multiple combinations of the coding to get it to work. All I want to do is have it create a new line.
<?php
$website = $_SERVER['SERVER_NAME'];
$RemoteIP = $_SERVER['REMOTE_ADDR'];
$RemoteHost = gethostbyaddr($_SERVER['REMOTE_ADDR']);
echo 'The website is ' , "$website \n";
echo 'The User\'s IP Address is ' , "$RemoteIP \n";
echo 'The User\'s IP resolves to ' , "$RemoteHost \n";
?>
I have tried moving the \n to it's own double-quoted section, such as "$website", "\n". I have also tried doing "website\n" and so forth. I have reread over the php.net manual involving escaping characters and quotes (strings).
I used gethostbyaddr because $_SERVER['REMOTE_HOST'] did not resolve.
Thanks