New course! Every coder should learn Generative AI!
Try a free lesson+ 1
Which is the best way to access client ip in php ?
2 Answers
+ 1
$_SERVER array is your friend here. However depending on the configuration of the webserver, this information might not be available.
+ 1
$_SERVER['REMOTE_ADDR']