Undoubtedly. He could also use the PEAR DB abstraction layer.
"Satyam"
<[EMAIL PROTECTED]>; "Deckard" <[EMAIL PROTECTED]>;
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 c
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
err
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 better
4 matches
Mail list logo