I have scripts from external domains that access our api script on our server, which returns information via json. My question is, if someone made the request from their site to our site for the api script can I get the url/domain the request came from? If so how would I do that? I tried using $_SERVER to get the domain name but that just gives me the domain the api script we host is on.
Im using PHP 4.x, yes will be upgrading soon but not now.
Your best bet is to check
The content is written by members of the stackoverflow.com community.
It is licensed under cc-wiki