LiteSpeed Support Forums

LiteSpeed Support Forums (http://www.litespeedtech.com/support/forum/index.php)
-   PHP (http://www.litespeedtech.com/support/forum/forumdisplay.php?f=19)
-   -   php getevn problem (http://www.litespeedtech.com/support/forum/showthread.php?t=484)

memic 07-05-2006 03:29 AM

php getevn problem
 
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 11:14 AM

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 10:43 PM

how long
 
are you talking about weeks or months? :P

xing 07-07-2006 09: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/communi...read.php?t=486

Enjoy.

memic 07-09-2006 01:36 AM

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


All times are GMT -7. The time now is 02:32 AM.