|
-
Nov 6th, 2008, 08:04 PM
#2
Frenzied Member
Re: PHP and MYSQL - Connecting.. etc.
Create a "constants" file where you define your database connection variables and store it outside your root directory (security)
Include this file in the scripts you want to make a db connection.
This might explain a good way.
The second sounds like a normal practice in all language, so yeah, thats the way to do it.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|