RE: [PHP-WIN] Retrieving Server and PHp variables

2003-03-04 Thread Rich Gray
> Thanks Rich, > > That worked fine on my PHP Version 4.3.1 > > The older syntax seems to work fine on an earlier version of PHP though > (Version 4.2.3)!! > > Regards, > Sharat > If register_globals is switched on in your php.ini (it's off by default in later versions of php) then it'll work in v

RE: [PHP-WIN] Retrieving Server and PHp variables

2003-03-04 Thread Sharat Hegde
PROTECTED] Subject: RE: [PHP-WIN] Retrieving Server and PHp variables > Hello, > > I just upgraded from PHP3 to PHP4 on Apache 1.3.x on Windows NT. I need to > access the PHP and SERVER variables on my PHP 4 installation. My > code is as > follows: > >echo $SERVE

RE: [PHP-WIN] Retrieving Server and PHp variables

2003-03-04 Thread fran . thomas
Autoglobals not on,use $_SERVER['{VAR}'] instead. .:Fran -Original Message- From: Rich Gray [mailto:[EMAIL PROTECTED] Sent: 04 March 2003 10:41 To: Sharat Hegde; php-windows Subject: RE: [PHP-WIN] Retrieving Server and PHp variables > Hello, > > I just upgraded f

RE: [PHP-WIN] Retrieving Server and PHp variables

2003-03-04 Thread Rich Gray
> Hello, > > I just upgraded from PHP3 to PHP4 on Apache 1.3.x on Windows NT. I need to > access the PHP and SERVER variables on my PHP 4 installation. My > code is as > follows: > >echo $SERVER_SOFTWARE; > echo $PHP_SELF; > ?> > > However, I get the following error: > > Notice: Undef

[PHP-WIN] Retrieving Server and PHp variables

2003-03-04 Thread Sharat Hegde
Hello, I just upgraded from PHP3 to PHP4 on Apache 1.3.x on Windows NT. I need to access the PHP and SERVER variables on my PHP 4 installation. My code is as follows: However, I get the following error: Notice: Undefined variable: SERVER_SOFTWARE in c:\program files\apache group\apache\htdocs\