![]() |
Can anyone help with the Server protocol and port?
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 . ')'; |
You are better off working with the assumption that register_globals is OFF ... so use $_SERVER['VAR_NAME'] rather than $VAR_NAME (or the equivalent ... check out php.net under pre-defined variables ...
|
Quote:
|
Quote:
|
:) php.net has it all ... sometimes it's just hard to find ;)
Glad to be of service :D |
All times are GMT. The time now is 04:16 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|