Re: [PHP] Help on objects [with reply]

2006-10-05 Thread benifactor
i may be wrong, but your use of the class to me seems pointless... the reuse aspect of your database connection could be done with a simple include... maybe your need is different from what i suspect, being a beginner myself... here is what i do, and maybe the list can tell me if it would be

Re: [PHP] Help on objects [with reply]

2006-10-05 Thread Dave Goodchild
Re the last suggestion, ensure you keep those database details outside the web root (ie in a file called connect.inc for example) or if have to keep it there add a .htaccess file that prevents download of *.inc files. Also, avoid use of the error suppression operator (@). You need to see your

Re: [PHP] Help on objects [with reply]

2006-10-05 Thread benifactor
-general@lists.php.net Sent: Thursday, October 05, 2006 4:55 AM Subject: Re: [PHP] Help on objects [with reply] Re the last suggestion, ensure you keep those database details outside the web root (ie in a file called connect.inc for example) or if have to keep it there add a .htaccess file

Re: [PHP] Help on objects [with reply]

2006-10-05 Thread Dave Goodchild
Undoubtedly. He could also use the PEAR DB abstraction layer.