Welcome to Geeklog, Anonymous Wednesday, January 15 2025 @ 07:45 pm EST
Geeklog Forums
php in staticpages
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
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
8
10
Quote
123
Anonymous
require once('');
5
13
Quote
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.
hope that helps.
10
10
Quote
All times are EST. The time is now 07:45 pm.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content