Forum Moderators: coopster

Message Too Old, No Replies

check server IP

         

Majid

3:28 pm on May 25, 2008 (gmt 0)

10+ Year Member



Hello,

I encoded my files with TrueBUG and I want to check the server IP at first of my program for this program cannot run on another server.

For example I want to write an IF in first line of my program and if the server IP which the program run on it is 000.000.000.000 run the program else show an error.

How can I found the server IP which the files run on it?

Regards

cameraman

3:52 pm on May 25, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Try $_SERVER['SERVER_ADDR']

Majid

5:16 pm on May 25, 2008 (gmt 0)

10+ Year Member



thanks for your help and sorry for my stupid question.

cameraman

8:16 pm on May 25, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The only stupid question is the one that is not asked.