2

i am building a website on 000webhost.com trying to include a php file using

<?php include ($_SERVER['DOCUMENT_ROOT']."/main/meta.php") ?>

but the server says
Warning: include() [function.include]: Failed opening '/main/meta.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/USER_NAME/public_html/index.php on line 5
Warning: include() [function.include]: open_basedir restriction in effect. File(/usr/local/apache/htdocs/main/head.php) is not within the allowed path(s): (/home/:/usr/lib/php:/tmp) in /home/USER_NAME/public_html/index.php on line 7

What should I do any other way to include file (and i am not going for ../../main/meta.php) because my site have so many folders and subfolders and i dont wanna edit every file.

Is there any way to include files.
I have full .htaccess support.

0 Answers0