Question about globalVariablesAndFunctions

0 axel vincent · September 1, 2015
When I do this

      echo    $user_ip = $_SERVER ['REMOTE_ADDR'];

            it returns me that 

                   ::1

Question: is it normal?



Post a Reply

Replies

Oldest  Newest  Rating
0 ahmed sabry · September 1, 2015
yes , it;s normal on localhost but when you have a hosting
it will return with user ip 
good luck
0 axel vincent · September 4, 2015
tu ahmed
0 Alan Johnson · September 6, 2015
Yes, ::1 is another way of saying localhost, or 127.0.0.1 it's your loopback address.
  • 1

PHP

106,927 followers
About

Server-side, HTML embedded scripting language used to create dynamic Web pages.

Links
Moderators