Re: [PHP] Help with Class

2005-09-09 Thread Ryan Creaser
Ian Barnes wrote: Hi Ryan, I am including a different class.inc.php file each time the foreach loops. Each one sits in a different dir. Yes, I do get that error. My understanding of OOP is that I could null the $sdk variable and re-init it when the loop starts again.. You'd be right if t

RE: [PHP] Help with Class

2005-09-08 Thread Ian Barnes
: Ryan Creaser [mailto:[EMAIL PROTECTED] Sent: 09 September 2005 12:34 AM To: Ian Barnes Cc: PHP General Subject: Re: [PHP] Help with Class Ian Barnes wrote: >require_once ( >$fetchd['path'].'sdk/ipbsdk_class.inc.php' ); > >

Re: [PHP] Help with Class

2005-09-08 Thread Ryan Creaser
Ian Barnes wrote: require_once ( $fetchd['path'].'sdk/ipbsdk_class.inc.php' ); What is the above line doing? It looks like you are trying to redeclare the ipbsdk class each time around the loop which is illegal in php. You can't do : class ipbsdk { ...

RE: [PHP] Help with Class

2005-09-08 Thread Ian Barnes
Hi Thomas, Thanks for the help. That didn't work though ... Its now set to be $SDK = new sdk; Nothing :( -Original Message- From: Thomas [mailto:[EMAIL PROTECTED] Sent: 08 September 2005 09:08 AM To: 'Ian Barnes' Subject: RE: [PHP] Help with Class Sorry for not expla

RE: [PHP] Help with Class

2005-09-07 Thread Ian Barnes
] Help with Class I would have guessed unset($sqk); to work, but also try $sdk = null; Jason On 9/7/05, Ian Barnes <[EMAIL PROTECTED]> wrote: Hi, I am writing a site where I need to access multiple classes of the same name located under certain directories. The reason for each direct

RE: [PHP] Help with Class

2005-09-07 Thread Ian Barnes
] Help with Class I would have guessed unset($sqk); to work, but also try $sdk = null; Jason On 9/7/05, Ian Barnes <[EMAIL PROTECTED]> wrote: Hi, I am writing a site where I need to access multiple classes of the same name located under certain directories. The reason for each direct

Re: [PHP] Help with Class

2005-09-07 Thread Jason Davidson
I would have guessed unset($sqk); to work, but also try $sdk = null; Jason On 9/7/05, Ian Barnes <[EMAIL PROTECTED]> wrote: > > Hi, > > > > I am writing a site where I need to access multiple classes of the same > name > located under certain directories. The reason for each directory is >