$_SERVER geht - variablen gehen nicht

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

  • $_SERVER geht - variablen gehen nicht

    Hallo zusammen,

    hab grad xampplite installiert (PHP Version 5.1.6) und meine
    scripten kopiert ....


    Nix geht weil:

    PHP-Code:
    print_r ($_SERVER
    bringt:
    Array
    (
    [HTTP_HOST] => www.xyz.localhost
    [HTTP_USER_AGENT] => Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8.0.7) Gecko/20060909 Firefox/1.5.0.7
    [HTTP_ACCEPT] => text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
    [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
    [HTTP_ACCEPT_ENCODING] => gzip,deflate
    [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
    [HTTP_KEEP_ALIVE] => 300
    [HTTP_CONNECTION] => keep-alive
    [HTTP_CACHE_CONTROL] => max-age=0
    [PATH] => C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Programme\UltraEdit
    [SystemRoot] => C:\WINNT
    [COMSPEC] => C:\WINNT\system32\cmd.exe
    [PATHEXT] => .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
    [WINDIR] => C:\WINNT
    [SERVER_SIGNATURE] => <address>Apache/2.2.3 (Win32) DAV/2 mod_ssl/2.2.3 OpenSSL/0.9.8c mod_autoindex_color PHP/5.1.6 Server at www.xyz.localhost Port 80</address>

    [SERVER_SOFTWARE] => Apache/2.2.3 (Win32) DAV/2 mod_ssl/2.2.3 OpenSSL/0.9.8c mod_autoindex_color PHP/5.1.6
    [SERVER_NAME] => www.xyz.localhost
    [SERVER_ADDR] => 127.0.0.1
    [SERVER_PORT] => 80
    [REMOTE_ADDR] => 127.0.0.1
    [DOCUMENT_ROOT] => S:/xampp/website/xyz/html
    [SERVER_ADMIN] => webmaster@localhost
    [SCRIPT_FILENAME] => S:/xampp/website/xyz/html/index.html
    [REMOTE_PORT] => 3212
    [GATEWAY_INTERFACE] => CGI/1.1
    [SERVER_PROTOCOL] => HTTP/1.1
    [REQUEST_METHOD] => GET
    [QUERY_STRING] =>
    [REQUEST_URI] => /
    [SCRIPT_NAME] => /index.html
    [PHP_SELF] => /index.html
    [REQUEST_TIME] => 1159982085
    [argv] => Array
    (
    )

    [argc] => 0
    )

    und

    PHP-Code:
    echo $HTTP_HOST 
    ist leer???

    irgend eine inisetting oder so ...
    welche war den das bitte
    Danke Orestis
    Risc is part of the game if you want to sit in the captain´s chair.

  • #2
    Wie wär's mit
    PHP-Code:
    echo $_SERVER['HTTP_HOST']; 
    Gruss

    tobi
    Gutes Tutorial | PHP Manual | MySql Manual | PHP FAQ | Apache | Suchfunktion für eigene Seiten

    [color=red]"An error does not become truth by reason of multiplied propagation, nor does truth become error because nobody sees it."[/color]
    Mohandas Karamchand Gandhi (Mahatma Gandhi) (Source)

    Kommentar


    • #3
      http://www.google.de/search?hl=de&q=...+globals&meta=

      Kommentar

      Lädt...
      X