Just to elaborate, PHP can only detect what gets sent to the server by the client, NOT by Apache like ????????? had said. He mean to say the browser.
Lots of vars like HTTP_HOST, HTTP_USER_AGENT, etc. etc. can be EASILY spoofed. Opera even has options built in to spoof the HTTP_USER_AGENT. With wGet you can set teh HTTP_USER_AGENT to whatever you like. With scripting langauges you can spoof HTTP_HOST by making a wierd HTTP request.