php getevn problem

Discussion in 'PHP' started by memic, Jul 5, 2006.

  1. memic

    memic New Member

    hi, i have litespeed standart install and it seems that

    getenv isnt working.

    when i use $somevar= getenv('HTTP_HOST'); somevar is emtpy after that,
    but when i use $somevar = $_SERVER['HTTP_HOST']; it works.

    is this a known problem?
  2. mistwang

    mistwang LiteSpeed Staff

    This is fixed. A new PHP LSAPI package will be available soon. :)
    However, it is recommended to use $_SERVER[] instead of getenv(), $_SERVER is more portable and faster.
    Last edited: Jul 6, 2006
  3. memic

    memic New Member

    how long

    are you talking about weeks or months? :p
  4. xing

    xing LiteSpeed Staff

  5. memic

    memic New Member

    thx

    Yes, thanks, now its working, pretty good work for now.

Share This Page