It's my understanding that you want to put the file that you want to "include" or "require" in a folder that's on the same level as your public html folder, but not IN your public html folder or any sub directory under it.
That's what I did. Then I set up .htaccess on that folder so that no one can just directly access the directory. Then in whatever file where I need to call that information, I just do a
require ("blahblah.php")
And this allows my scripts to access the file, but not anyone else directly.