RE: [PHP-WIN] includes problem

From: Date: Fri, 28 Dec 2001 13:41:30 +0000
Subject: RE: [PHP-WIN] includes problem
Groups: php.windows 
Request: Send a blank email to php-windows+get-11173@lists.php.net to get a copy of this message
Thanks for the offer Jim but I think I have it worked around. I still don't understand the linux paths on this server I've got one of my websites set up on so I don't really get where my include path is... it's not quite as simple as my configuration here at work with our NT box (albeit may be much more secure!) Thanks, John --------------------- John Asendorf - jasendorf@lcounty.com Web Applications Developer http://www.lcounty.com - NEW FEATURES ADDED DAILY! Licking County, Ohio, USA 740-349-3631 Nullum magnum ingenium sine mixtura dementiae fuit > -----Original Message----- > From: Jim Lucas [php] [mailto:jimphp@bend.com] > Sent: Thursday, December 27, 2001 3:12 PM > To: Asendorf, John > Subject: Re: [PHP-WIN] includes problem > > > why don't you send me a copy and I will look at it. > Jim Lucas > ----- Original Message ----- > From: "Asendorf, John" <JAsendorf@lcounty.com> > To: "Php-Windows (E-mail)" <php-windows@lists.php.net> > Sent: Thursday, December 27, 2001 9:31 AM > Subject: [PHP-WIN] includes problem > > > > I have three files: > > > > adodb.inc.php - a database abstract class > > soldier_db.inc.php - a specific include for the databases > I am working > > with > > index.php - a page that displays lots of different things... > > > > soldier_db.inc.php has the include line for adodb.inc.php > and establishes > a > > connection to a mysql batabase called $connection > > > > index.php includes soldier_db.inc.php and then tries to use > some of the > > class elements from adodb.inc.php and $connection **from** > > soldier_db.inc.php > > > > The debugging shows the connection as valid while echoing from the > > soldier_db.inc.php but dead when echoing from the index.php > > > > for example, this code reports "OK" while in the > soldier_db.inc.php but > > "Dead" in the index.php portion.... exact same code, > soldier_db.inc.php > > included above this code in index.php > > > > if (!$connection) { > > echo "Dead"; > > } > > else { > > echo "OK"; > > } > > > > Does anyone have an idea why this is happening? None of > these items are > in > > functions, so I guess I wouldn't think that it's a globals > issue. (and > I've > > tried establishing $connection as a global variable to no change in > results) > > > > If anyone wants the code itself, I'll pull it out and send it. > > > > Thanks in advance, > > > > John > > > > > > > > > > > > > > > > --------------------- > > John Asendorf - jasendorf@lcounty.com > > Web Applications Developer > > http://www.lcounty.com - NEW FEATURES ADDED DAILY! > > Licking County, Ohio, USA > > 740-349-3631 > > Nullum magnum ingenium sine mixtura dementiae fuit > > > > -- > > PHP Windows Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net > > For additional commands, e-mail: php-windows-help@lists.php.net > > To contact the list administrators, e-mail: > php-list-admin@lists.php.net > > > > >

« previous php.windows (#11173) next »