RE: [PHP] Class rules

2004-02-18 Thread Ford, Mike [LSS]
On 17 February 2004 22:02, Alex Hogan contributed these pearls of wisdom: > Hi All, > > > > What are the rules of thumb for classes and included files? > > > > Can I not include a file in a class function? No. The entire class has to be in the same file (and inside a single set of tags).

Re: [PHP] Class rules

2004-02-17 Thread John W. Holmes
From: "Alex Hogan" <[EMAIL PROTECTED]> > What are the rules of thumb for classes and included files? > > Can I not include a file in a class function? If I put the include() > outside the class structure everything works fine, but when I put it inside > the class it freaks. > > Am I doing somethi

Re: [PHP] Class rules

2004-02-17 Thread Gareth Williams
Hi there, Try include_once(), it's much safer Cheers, Gareth On 17 Feb 2004, at 23:02, Alex Hogan wrote: Hi All, What are the rules of thumb for classes and included files? Can I not include a file in a class function? If I put the include() outside the class structure everything works