1000 FAQs, 500 tutorials and explanatory videos. Here, there are only solutions!
Include PHP files coming from "/data" under "/web"
If you wish to put PHP files in the /data folder so as to be able to include them (require_once(file_inc.php)) in your PHP files under /web, here is the include path for init_set ("include_path","../data"):
$_SERVER["DOCUMENT_ROOT"] . '/../data'
The include_path cannot be defined again via the .htaccess file.
Link to this FAQ: