Hi,
In several PHP pages I use the same lines to set up a connection to a mySQL database.
// set variables for database
$Host = "localhost";
$User = "xxx";
$Password = "yyy";
$DBName = "zzz";
$TableName = "aaa";
I'd rather put this somewhere besides in a php file, since it contains my username and password.
Is it possible to use an option file with a php file? It looks to me as though option files are only usable with the command line or batch scripts.
It would be possible to put these in a php file and then call it with the php require function. That'd be okay if I could place this above (or maybe it's below?) my home directory. Unfortunately, with Discount-Hosting I don't have access to anything higher than my home directory. Am I right in assuming that this kills that method?
Any other ideas on how to do this?
Thanks!
Art

