Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Arno Welzel Newsgroups: comp.lang.php Subject: Re: [ Get Hostname ] Date: Mon, 18 May 2015 10:04:22 +0200 Lines: 21 Message-ID: <55599D06.7080208@arnowelzel.de> References: <55599B49.7050802@arnowelzel.de> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Trace: individual.net yv4FL+HbR8viUm30O3z5Nw0sexxva0SHKd4thISyvOzzccGKiG Cancel-Lock: sha1:IJBI2XWSKAKQBofftjH3Bw8y00c= In-Reply-To: <55599B49.7050802@arnowelzel.de> Xref: csiph.com comp.lang.php:15335 Am 2015-05-18 um 09:56 schrieb Arno Welzel: > Am 2015-05-12 um 02:10 schrieb alissonlinneker@gmail.com: > >> How do I get file_get_contents return the client domain that is referring to the url? >> >> $ _SERVER ["REMOTE_ADDR"] is returning the shared hosting DNS reverse and not site.com [...] Sorry - I overlooked this part of your question. In fact this problem can not be solved as it is a very common usual way to host web sites - one IP address any many domains which resolve to this address but the host name of the provider for DNS reverse. -- Arno Welzel http://arnowelzel.de http://de-rec-fahrrad.de http://fahrradzukunft.de