You need to know the IP address from which the request came to my server.
- My ip 212.66.35.189 $ _SERVER ['REMOTE_ADDR'] = server ip with file_get_contents ($ url) Same $ _SERVER ['REMOTE_ADDR'] = 212.66.35.189 when clicking on a link from any site. That's why the question arose. Thanks, got it. - Taypfoon
|
1 answer
$_SERVER['REMOTE_ADDR']
- just for the general education of the vehicle: var_dump ($ _ SERVER); and of course [this] [1] [1]: php.net/manual/ru/reserved.variables.server.php - thunder
|