That is what I am doing (in order that all db connections are controlled by one file), but I thought the .inc file has to be (?) in the same folder as the website (there is no "includes" folder).
Originally posted by petesmc
If you have a dedicated server then in phpMyAdmin you can edit the permissions via the 'mysql' database. If you have normal hosting, you must ask you hosting provider to change te settings for you.
About the passwords at top level: Make a file called: include.inc and place in the folder that contains either: public_html or www or public_ftp. It should all be the folder. Then at the top of php scripts add:
Change the absolute path to your own. Inside include.inc place the $username = "";
$password = "";
$host = "";
and if you want $database = ""; but not neccessary. Then in normal php connect to the database after including the file or again, you can connect in the include.inc file.
Hope this helps