Boofo
03-06-2004, 01:31 AM
Can anyone please tell me why the following line doesn't work in the functions.php?
$servertype = '<br />Server Type: ' ."$serverinfo | Protocol: $SERVER_PROTOCOL | Port: $SERVER_PORT | IP: $SERVER_ADDR";
I got the serverinfo to come up but the rest of it doesn't show anything.
Also, in the following line, I got my IP address to show up but I can't get the port to show up. This worked fine in vB2. I had to change $REMOTE_ADDR to $_SERVER['REMOTE_ADDR'] to get it to work in vB3, though.
$ipaddress = ' <b>--</b> Your IP Address: ' . $_SERVER['REMOTE_ADDR'] . ' (port ' . $REMOTE_PORT . ')';
$servertype = '<br />Server Type: ' ."$serverinfo | Protocol: $SERVER_PROTOCOL | Port: $SERVER_PORT | IP: $SERVER_ADDR";
I got the serverinfo to come up but the rest of it doesn't show anything.
Also, in the following line, I got my IP address to show up but I can't get the port to show up. This worked fine in vB2. I had to change $REMOTE_ADDR to $_SERVER['REMOTE_ADDR'] to get it to work in vB3, though.
$ipaddress = ' <b>--</b> Your IP Address: ' . $_SERVER['REMOTE_ADDR'] . ' (port ' . $REMOTE_PORT . ')';