I have a config.php file which I use to connect to my database.

Within this file I also have variables such as $sitename, $siteurl etc. I use these in my other pages so I don't have to always type in the same link information etc.

I was wondering whether to store this information in my database however. On the one hand saving the info in variables on my config.php file is quick and easy. However I thought that saving a database in a database is that bit more secure.

I wouldn't be saving anything secure in the config.php file - no passwords etc; only sitename, url etc...

Any thoughts on which to use?