| 
	
 | 
 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] 
 |