PDA

View Full Version : php getevn problem


memic
07-05-2006, 04:29 AM
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?

mistwang
07-06-2006, 12:14 PM
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.

memic
07-06-2006, 11:43 PM
are you talking about weeks or months? :P

xing
07-07-2006, 10:57 AM
Memic,

LiteSpeed has a historical record of releasing often.

Please download the new PHP LSAPI, version 2.2, here:

http://www.litespeedtech.com/community/forum/showthread.php?t=486

Enjoy.

memic
07-09-2006, 02:36 AM
Yes, thanks, now its working, pretty good work for now.