 Alright, in this video I'm going to show you the example of using a private data file outside of the root directory. So here is an example of just showing you that. I have a file here called dbconnect. It's in the htdocs folder. I'm using XAMP by the way, so you kind of understand what's going on. Inside the XAMP folder, the htdocs is the root directory for the web server. If you launch on the server, you're not going to see anything above or outside of the htdocs folder. Let me launch the browser here so you can see I'm at the root directory. I'm using XAMP by the way. You have to run this through XAMP. The local host is the root directory that points to the htdocs folder. Right now it's pointing to the dashboard because the index forces me to go there. So I'm going to go and connect, load this dbconnect file. It's inside the htdocs right here. Now this one, it just does a really simple database connection to my database. And I'm calling a connect function and it's going to return either a successful connection or some error messages. And I call the dbobject down here, so it should display the information. And it's going to print this local data first and then make the connection and then print either connected or failure. So let's go over here and I'm going to change this to dbconnect. So you see that it's successfully connected using the local data. So now the local host here points to the htdocs folder in here. You cannot access data outside of htdocs. So what I have here is that I create a folder called underscore private and the inside that private folder, I have a private data file that contains the exact same location and the same data here as well. I added a statement to say private data instead of the local connected data. So now I'm going to turn all these off. And then we're just going to rely on the external one. So you can see that in code, you can go outside of the root directory using these directories. You can go outside as far as you want to the root root of the server if you want to. But right now we are outside of the htdocs folder and I'm going to go to the private folder, access this file in the code only. And then save that. And then now let's go back to the browser and refresh it. And now you see that I'm calling the private data now. And not the local data because I used the include here. And just to show that it does work, I'm going to go in and maybe change this to root x so the user should fail and it should also fail the connection here. So that's the idea. So again, you cannot go outside of the DB Connect here. If you try to do something like this, if you try to go and launch this directly like that in the browser, it's not going to work. You will be very tempted to do something like that because that slash will go up the directory and then into the private folder and then private data. And then if you try to run it, it's not going to work. So it's not possible. That's what I mean by having your data in a safe and secure location. Hope that's helpful. But one more thing, this only works because we're running on a public server and public server here. Now, of course, it doesn't work inside PHP my admin, I mean PHP Storm because we're doing this on its own server, which we have access to everything in the C drive, actually in the XAMP folder. So in this case, the XAMP folder is the root directory of this project in PHP. So if you were to run this locally on the browser here from PHP server, you can see that the root directory is actually point to the local host, which is something beyond the local host in the XAMP folder. So that's why I'm able to see it's like go all the way to the XAMP directory here. That's the project root of this PHP. If you were to store data outside of the XAMP folder, like you said, in your email in the C drive, then yeah, it will be the same thing. So just not to confuse this with this one here because if I were to copy what I typed earlier and put it here, let's say right here, like that. Yeah, I will be able to find it. Well, let me go dot dot. It's in the HT docs and then outside the HT docs right here. I made a mistake. If I do that, where'd it go? No, if I just access directly, maybe it's in the private folder because I have access to the entire structure. If I do that, you can see that I'm able to access it because I'm working on PAPStorm. But on the real server, you cannot do that. Okay, so I hope that clarifies your question and thanks.