There is a way to get users IP using $_SERVER['REMOTE_ADDR'], etc.
But how can i get user's domain?
I have a page that returns a json response.
that page is consulted by another website using the function "file_get_contents" and that website is "www.mydomain.org".
Can i get the domain name the consulted me ("www.mydomain.org") besides his IP address?