register_globals=off question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Kenton Smith

    #1

    register_globals=off question

    With register_global s=off, is there anyway to use the $HTTP_USER_AGEN T and
    $REMOTE_ADDR variables?

    I would like to log those variables when people visit my site.

    Thanks



  • Cameron

    #2
    Re: register_global s=off question

    Kenton Smith wrote:[color=blue]
    > With register_global s=off, is there anyway to use the $HTTP_USER_AGEN T and
    > $REMOTE_ADDR variables?
    >
    > I would like to log those variables when people visit my site.
    >
    > Thanks
    >
    >
    >[/color]

    use $_SERVER['HTTP_USER_AGEN T'] and $_SERVER['REMOTE_ADDR']


    ~Cameron

    Comment

    • Chung Leong

      #3
      Re: register_global s=off question

      Do an extract($_SERVE R); at the beginning of your script.

      Uzytkownik "Kenton Smith" <smithk1@shaw.c a> napisal w wiadomosci
      news:MkXYb.5420 91$JQ1.329243@p d7tw1no...[color=blue]
      > With register_global s=off, is there anyway to use the $HTTP_USER_AGEN T and
      > $REMOTE_ADDR variables?
      >
      > I would like to log those variables when people visit my site.
      >
      > Thanks
      >
      >
      >[/color]


      Comment

      Working...