Re: Windows Include

From: Date: Thu, 01 Jan 1970 00:00:00 +0000
Subject: Re: Windows Include
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-16023@lists.php.net to get a copy of this message
Include files can be any type of text file. If you have PHP commands in the include file then you need to put the appropriate PHP tags in it. So your include would look like this: <?php $DB='whatever'; ?> Then the $DB will get processed as a variable, not a text string. Jim -------Original Message------- From: Jason Date: Thursday, September 26, 2002 11:50:46 AM To: php-windows@lists.php.net Subject: [PHP-WIN] Windows Include 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! -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php .

« previous php.windows (#16023) next »