You are here: Srv OS compatibility and $_ENV « PHP Programming Language « IT news, forums, messages
Srv OS compatibility and $_ENV

Posted by awebguynow on 08/22/06 20:36

I'm running PHP on my local WinXP box, but will host on *nix Srv.

So I started to use and OS detect, something like (psuedo-code):
if ( strpos($_ENV['OS'], "Win") === false ) { *nix } else { Win }

but its not working right, and I wondered why.
My OS looks to be set, as shown by WinXP> set
ditto for output from phpinfo()
But the $_ENV global, looks like an empty array Array ( )
whats the story ?

Of course I've the incompatible versions of Apache/PHP: A2.2x and
php5.1.x
patched with php5apache2_2.dll
( thats the only reason I didn't cry after installing 5.1.4 and then
having 5.1.5 come out the next day ) It makes you wonder, what part
of 5.1.x am I really using, if any

my settings from phpinfo():
Apache Version Apache/2.2.3 (Win32) PHP/5.2.0RC2-dev

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация