Re: Windows Include

From: Date: Fri, 27 Sep 2002 07:58:52 +0000
Subject: Re: Windows Include
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-16030@lists.php.net to get a copy of this message
you need to define the variable in the globals super array... to define a 'global' that you can use later you must; $var = 'value'; global $var; "Jason" <jason@jasonrebello.co.uk> wrote in message news:20020926172424.29530.qmail@pb1.pair.com... > Can anyone help me? > > When i use the following include file: > > file globals.php > > $DB='whatever'; > > then reference it from another script with: > > <?php > include '..\..\globals.php'; > > ?> > I get > > $DB = 'whatever' > being printed on the screen and the script cant recognise $DB (undefined) > afterwards. > > Thanks for any help for a novice! > >

« previous php.windows (#16030) next »