Environmental and/or global variable help..
Posted: Mon Jul 22, 2002 4:06 pm
I'm not sure if what I'm looking for is a predefined global variable within PHP or if it's an Apache environmental variable.. I didn't find it at php.net(reserved.variables.php) nor did I find it within Apache's environmentals(/docs/env.html).. I've been searching google for every SSI and Environmental/Global Variable page I can find, but so far, I haven't had any luck..
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:
When run, it'd return something similiar to this:
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
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