$_server["http_host"]

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • $_server["http_host"]

    Hallo!
    Mit
    PHP Code:
    $host$_SERVER["HTTP_HOST"
    lese ich die Domain aus, soweit ok! Also ergibt echo $host; z.B. www.php-resource.de! Wie aber stell ich es an, dass das "www." nicht ausgegeben wird, also nur php-resource.de?

    Vielen Dank!!!

  • #2
    substr() hilft dir weiter.

    solltest aber prüfen, ob www. auch in $host vorkommt.
    Kissolino.com

    Comment


    • #3
      Re: $_server["http_host"]

      sieh dir auch mal parse_url() an ...
      I don't believe in rebirth. Actually, I never did in my whole lives.

      Comment

      Working...
      X