I've seen this on other sites before reflecting my ISP's info, so I know it's possible, but I wasn't how it was done.. Basically I want to be able to find something like the following example.. The php script:
Code: Select all
<?
$msg = "You're using: ".$_SERVERї"WHAT_EVER"]."\n";
echo "$msg";
?>You're using: blahblah.123.laj.centurytel.net
CenturyTel is my ISP, so it'd be different for every visitor to that page just as IP and UA is.. I know it'd have to call something from the client just as HTTP_USER_AGENT and REMOTE_ADDR would.. I thought it may be REMOTE_HOST, REMOTE_DOMAIN or IP_DOMAIN, but none of them worked.. Hopefully I'm making sense..
Is it possible to replace "WHAT_EVER" in the code above with something to get me the results I'm looking for via PHP? Thanks in advance..
Take care.. peace..
eriol