It says the first one should point to the parent of my Web Root Directory, but I am using NetBeans on my laptop, and I can’t go above my project folder.
And for the second one what is my Web Root Directory?
Where are the files that are part of the website (e.g. index.html) stored – in the project folder, or a subdirectory like public_html?
The second one is mixed up, because it’s called BASE_URL but the value is not a URL, it’s just a hostname. I don’t know what kind of setup you have, but your hostname might be localhost and your base url something like http://localhost/some_directory/.
When using a single entry point you can use the below. If its possible to enter from multiple points, than you might be better off with $_SERVER[‘DOCUMENT_ROOT’];