answersLogoWhite

0

How do you get a user's IP with PHP?

User Avatar

Anonymous

14y ago
Updated: 8/19/2019

The IP is stored in $_SERVER['REMOTE_ADDR'] while the visitor is on the page.

User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

How do you get the domain name of someone who visits your website?

Users do not have a "Domain Name". Users have "IP" addresses. IP addresses can be obtained in a number of ways; Commonly with dynamic languages, such as PHP; Which can be learned at [ http://www.w3schools.com ].


How can you stop pixels bleeding with in php?

PHP is a server-side scripting language, which actually has little to do with pixels on your users' computers; so there is no real way to stop pixel bleeding in PHP.


How do you know who loaded your page in PHP?

A simple approach would be to log the IP address of each visitor to your website. The IP address identifies the computer or network from where the client visited your website so you should be able to retrace each visitor. In PHP, the IP address of the client is available in the $_SERVER environment variable. $_SERVER['REMOTE_ADDR'];


Is PHP related to the internet?

Yes, a major part of the Internet is web pages that can be viewed using a browser of your choice such as Internet Explorer or Firefox. PHP is one of many languages that can be used to generate dynamic webpages to displayed to website users. Most users of the internet don't write PHP, but they do access pages that are generated using it.


When a supervisor blocks an IP do registered users who have that IP get blocked off?

Yes, as the vandals are hurting others, and not just themselves.


Where can I find more information on ip pbx?

IP PBX can be researched on wikipedia. Or, users can search www.fonality.com for more information.


How do you find your Nintendo DS ip so you can get a Linksys router to add you to the allowed users list via IP?

U cant


What makes broadband users more vulnerable to hackers because the hackers have a more permanent IP address to work with?

Static IP address


Do they change IP addresses on wikis while anon only?

Nope. If they block anonymous users only, changing ip address will be restricted.


How can you found your website viewer and his ip address?

It depends on the technology your web site is using. For example, in PHP you can see this via $_SERVER['REMOTE_ADDR'].


What enables users to send data across sometimes unreliable networks?

tcp/ip


Where can a tutorial in query strings in PHP be viewed?

There are several places where tutorials can be found for query strings in PHP. One is Learning Processing which is good if you are unfamiliar with PHP. Code Diesel has a step-by-step tutorial offering easily followed examples of how to fix query strings. PHP Manuel has a good tutorial for more advanced users.