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 - [EMAIL PROTECTED]
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:[EMAIL PROTECTED]]
> 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" <[EMAIL PROTECTED]>
> To: "Php-Windows (E-mail)" <[EMAIL PROTECTED]>
> 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 - [EMAIL PROTECTED]
> > 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: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: 
> [EMAIL PROTECTED]
> >
> >
> 

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to