Re: is there a problem with php script pulling HTML out of database as it writes the page??
| From: | Jason Norwood-Young | Date: | Fri, 18 Jul 2008 07:19:27 +0000 |
| Subject: | Re: is there a problem with php script pulling HTML out of database as it writes the page?? | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-277013@lists.php.net to get a copy of this message | ||
On Thu, 2008-07-17 at 10:41 -0400, Daniel Brown wrote:
> 9.) NEVER store passwords in a PHP script. Instead, store them in
> a file named
inc/config.inc in the web directory, and include
> them.
Dude! You forgot the most important bit:
inc/config.inc:
$dbusername="root";
$dbpassword="r00t"; //By combining letters and numbers, this password
becomes unhackable
It's important to also set your server root password the same as your DB
password so that when you hand passwords out to your outsourced
developers, secretaries, tea ladies and janitors they can have full
access to the system and don't waste your time setting up permissions.