Welcome to Geeklog, Anonymous Thursday, March 28 2024 @ 04:39 pm EDT

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
 Quote

123

Anonymous
require once('');
 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.
 Quote

All times are EDT. The time is now 04:39 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