localhost issue from outside localhost without using domain name

Discussion in 'Domain Names' started by jamied_uk, Apr 27, 2012.

  1. #1
    I have not currently got a domain name and i am working onit at the moment i have a stand alone search engine which asumes i have a domain name and from my server i am running from home the net name is ht tp or https ://localhost

    but when results from search engine are displayed it shows as localhost but i need to somehow use

    $_SERVER['HTTP_HOST']

    or
    echo str_replace("www.", "", $_SERVER['HTTP_HOST']);

    or something similer so that from outside the localhost (that can access the home server) the results are valid and wont give an error because of course they would have to have localhost setup there end and thats not good also the content will not be there. see the issue?? any ideas on this simple / complex issue??

    (the above may look incorect becasue i canot post links so you see what i meant)
     
    jamied_uk, Apr 27, 2012 IP