Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
How can we get IP address of a client in PHP?
Home
PHP
How can we get IP address of a client in PHP?
0
votes
asked
Jun 6, 2020
in
PHP
by
Robindeniel
How can we get IP address of a client in PHP?
#php-get-ip-address
#php-client-ip-address
#php-address-ip
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Jun 6, 2020
by
SakshiSharma
$_SERVER["REMOTE_ADDR"];
Your comment on this answer:
Email me at this address if a comment is added after mine:
Email me if a comment is added after mine
Privacy: Your email address will only be used for sending these notifications.
Related questions
0
votes
Q: Is it possible to get a public DNS or IP address for the Azure Internal Load Balancer?
asked
Jul 31, 2021
in
Azure
by
DavidAnderson
azure
0
votes
Q: How can we create a database using PHP and MySQL in PHP?
asked
Jun 6, 2020
in
PHP
by
Robindeniel
#php-create-mysql-connection
#create-connection-php
0
votes
Q: How can we increase execution time of a PHP script in PHP?
asked
Jun 6, 2020
in
PHP
by
Robindeniel
#php-execution-time
#php-script-execution-time
0
votes
Q: How can we determine whether a PHP variable is an instantiated object of a certain class?
asked
Jun 23, 2019
in
PHP
by
SakshiSharma
#php
#php-php
#php-server-monitor-script
#php-support
#mysql-php
#php-programmer
#php-development
#php-language
0
votes
Q: How can we define a variable accessible in functions of a PHP script?
asked
Jun 22, 2019
in
PHP
by
SakshiSharma
#php
#php-php
#php-server-monitor-script
#php-support
#mysql-php
#php-programmer
#php-development
#php-language
0
votes
Q: How can we connect to a MySQL database from a PHP script?
asked
Jun 22, 2019
in
PHP
by
SakshiSharma
#php
#php-php
#php-server-monitor-script
#php-support
#mysql-php
#php-programmer
#php-development
#php-language
+1
vote
Q: How can we display information of a variable and readable by a human with PHP?How can we display information of a variable and readable by a human with PHP?
asked
Jun 22, 2019
in
PHP
by
SakshiSharma
#php
#php-php
#php-server-monitor-script
#php-support
#mysql-php
#php-programmer
#php-development
#php-language
0
votes
Q: PHP get domain name -how to fix it?
asked
Feb 2, 2021
in
PHP
by
SakshiSharma
#php-domain
php
0
votes
Q: How to get the length of string in PHP?
asked
Jun 6, 2020
in
PHP
by
SakshiSharma
#php-string-length
#length-string-php
+1
vote
Q: Which of the following function is used to get the ASCII value of a character in PHP?
asked
May 13, 2022
in
PHP
by
john ganales
ascii-value
...