PHP code stopped rendering properly
-
A page that been rendering properly, but now isn’t. When I place the source in a file outside of WP, it renders properly.
— SOURCE:
Thanks. <?php $ip = getenv(REMOTE_ADDR); $hostname = gethostbyaddr($_SERVER['REMOTE_ADDR']); $ipAddress = gethostbyname($_SERVER['SERVER_NAME']); print ('<font size="5" COLOR="#DC143C">Your IP address is: '.$ip.'.<p>Your host name is: '.$hostname.'.<p></font>'); ?>
–OUTPUT:
Thanks
$ip = getenv(REMOTE_ADDR);
$hostname = gethostbyaddr($_SERVER[‘REMOTE_ADDR’]);
$ipAddress = gethostbyname($_SERVER[‘SERVER_NAME’]);print (‘Your IP address is: ‘.$ip.’.
Your host name is: ‘.$hostname.’.
‘);
?>
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘PHP code stopped rendering properly’ is closed to new replies.