Forum Moderators: coopster

Message Too Old, No Replies

Server variable for users isp

         

dkin

4:45 pm on May 11, 2005 (gmt 0)

10+ Year Member



I can not find how to access this variable. I know its a rookie thing but I really need it. If anyone knows how to access it please reply.

jatar_k

5:37 pm on May 11, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



[php.net...]

$_SERVER['REMOTE_ADDR']

<added>wait, ISP or IP?

dkin

5:47 pm on May 11, 2005 (gmt 0)

10+ Year Member



ISP for instance mine would be something like .cable.rogers.com

jatar_k

6:03 pm on May 11, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



do this and see if it is available somewhere in there

echo '<pre>';
print_r($_SERVER);
echo '</pre>';

that will spit out all the server vars for you to look at

dkin

6:10 pm on May 11, 2005 (gmt 0)

10+ Year Member



hmmmm, its not in there. Then how do other sites get it, there is a cookie on my machine that displays this

28#33#.com#15340#9164#.cpe.net.cable.rogers.com#IPHERE##ISO-8859-1%2Cutf-8%3Bq%3D0.7%2C*%3Bq%3D0.7#-1968#9112#9093#0#5

how could they have gotten "cpe.net.cable.rogers.com" that?

coopster

11:47 pm on May 13, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



They are probably using reverse dns. A Reverse DNS lookup will give you the DNS name of a computer when all you know is the IP address (which jk has already showed you how to find)