newbie

Anonymous
hi,

i am using php in staticpages and in that php script i have my logon information for my database and that is not really secure i think. So i hav tried to put the logon info in a separate php file and tried to include it in the staticpage but it wont...

can anybody help me with how i can have my logon info in a separate file and still use it in staticpages. Ir if there are some other ways to do it.

thank you very much

123

Anonymous
require once('');

Status: Banned

machinari

Forum User
Full Member
Registered: 03/22/04
Posts: 1512
if you are not using a different database than your geeklog database (in your staticpage script), then you shouldn't need to reconnect to that database. when the script runs, it will run inside of an already open connection, which closes when the script ends, ie, at the end of the entire page. Therefore, there is no need to include your db details.

hope that helps.