Open a file in a folder which is not viewable

Hi guys

I have put a folder in my root so it cannot be accessed via a url

How could I open a file which is not viewable?

Do you mean that you want to open the file with PHP?

Or that you want to view the file in your browser?

It is a word doc. Want to open the file with PHP

Is it on the same server?

If so, it doesn’t matter if it can be accessed by url or not - just open it locally.