Okay so this is kind of a big question, so bare with me.
Basically what I want to achieve is to have another website connect to my database on a small app that I have provided them, without them knowing my database credentials.
Say I’m creating a comment system (I’m not, this would not be the way to go) and I would store every comment in my database. I would give them a code that will display comments from my database, without them getting access whatsoever to my database credentials – host, username and password.
Please give me a sample code of this code being given to another server without them getting into the code itself, or not getting into the database connection atleast.
honestly, even if your host did allow you to include remote files, it’s a Terrible Horrible No Good Very Bad idea. unless you have _complete_ control over both servers (and even then sometimes), it’s a huge security risk. that’s why people disable it.