Posted on: 01/03/05 10:45am
By: Anonymous (newbie)
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
php in staticpages
Posted on: 01/03/05 11:05am
By: Anonymous (123)
require once('');
php in staticpages
Posted on: 01/03/05 12:15pm
By: machinari
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.