Results 1 to 5 of 5

Thread: $HTTP_HOST does that still exist?

  1. #1

    Thread Starter
    Fanatic Member cpradio's Avatar
    Join Date
    Apr 2002
    Posts
    616

    $HTTP_HOST does that still exist?

    $HTTP_HOST is that still valid or should it be: $_SERVER['HTTP_HOST']??
    http://cpradio.net/
    Administrator @ WDForums and a Moderator @ WebXpertz City Forums

  2. #2
    First way: deprecated and only when register_globals is on
    Second way: teh 4.2 way and the good way

  3. #3

    Thread Starter
    Fanatic Member cpradio's Avatar
    Join Date
    Apr 2002
    Posts
    616
    cool, that is what i thought it changed to.
    http://cpradio.net/
    Administrator @ WDForums and a Moderator @ WebXpertz City Forums

  4. #4
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    Originally posted by cpradio
    cool, that is what i thought it changed to.
    Basically anything that was once considered a global now needs something slapped infront of it (unless register_globals is on (and I know you turn it on...)) for 4.2
    My evil laugh has a squeak in it.

    kristopherwilson.com

  5. #5

    Thread Starter
    Fanatic Member cpradio's Avatar
    Join Date
    Apr 2002
    Posts
    616
    I have only forced it on for my old scripts by using ini_set("register_globals",1); as rewriting them so they are 4.2 compatabile would be too long of a process.

    My newer scripts I am planning on following the 4.2 "rules/standards" as far as global variables, but as far as readability I can careless.
    http://cpradio.net/
    Administrator @ WDForums and a Moderator @ WebXpertz City Forums

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width