Hello,
Currently I'm getting the "open_basedir Restriction in Effect" error when trying to require a file in this manner:
require_once('/includes/folder/file.php');
To avoid the error I have to use a document relative path like this:
require_once('../../includes/folder/file.php');
I would like to use the first path because I can reuse such code in different pages in different directories without worrying about the path breaking.
How can I disable open_basedir so that the first path will be allowed?
Also for safety's sake, if possible I would only like to disable it for the public_html directory and it's child directories etc.
So any file in: /home/user/public_html (and it's child directories)
Can require any other file in: /home/user/public_html (and it's child directories)
I have root access if needed.
Thank you for any help!