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.
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.
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