私は000webhost.comでウェブサイトを構築しています.phpファイルを使用して含めようとしています
<?php include ($_SERVER['DOCUMENT_ROOT']."/main/meta.php") ?>
しかし、サーバーは言う
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
私のサイトには非常に多くのフォルダーとサブフォルダーがあり、すべてのファイルを編集したくないため、ファイルを含める他の方法はどうすればよいですか (../../main/meta.php は使用しません)。
ファイルを含める方法はありますか。
.htaccess を完全にサポートしています。