data base connection file

Discussion in 'PHP' started by kichus, Jul 9, 2010.

  1. #1
    Hi All,

    I have a database connection file, which I include in my php files.

    I am creating an additional module to my existing site , with external help. I gave them a folder with ftp to upload files to server. But I do not want them to have access to my database file.

    How can I give them a link to include without actually letting them see it. I do not want to give it as a path / url also as they can access it easily.

    Please help me with a best solution.
     
    kichus, Jul 9, 2010 IP
  2. Snell

    Snell Member

    Messages:
    27
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    38
    #2
    I see only one solution.

    Make a new folder and make a ftp connection to that folder, make them upload the files in that new folder.

    Then you'll have to move the files in their correct folder.
     
    Snell, Jul 9, 2010 IP
  3. kichus

    kichus Peon

    Messages:
    188
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    any other options, friends?
     
    kichus, Jul 9, 2010 IP
  4. sickness01

    sickness01 Member

    Messages:
    57
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #4
    not really, you could always limit the folder they can access then do like include("../dbconnectfile.php"); if they arent permitted to the folder that the file is in, they cant see the file contents of it. but if they were smart and malicious they could probably figure out the variables and call them on another file to see them
     
    sickness01, Jul 11, 2010 IP