うまくいく方法を探しましたが、すべてのパスでうまくいくようには見えなかったので、これを行う方法について教えてもらえないかと思っていました:
これは構造です:
Home Directoy
config.php
index.php
includes/
user_login.php
applicant_track.php
ucp/
index.php
includes/user_login.php を ucp/index.php に含めようとすると、ファイルが見つからないと表示され、コードは ucp/index.php にあります。
if(!defined('root_path'))
{
define('root_path', realpath(dirname(__FILE__)));
}
include(root_path . '\config.php');
switch($_GET["a"])
{
case null: include(root_path . '\index.php'); break;
case "login": include(root_path . '\includes\user_login.php'); break;
}
これは私が得るものです:
Warning: include(E:\xampp\htdocs\aod_panel\ucp\config.php): failed to open stream:
これを修正する方法についてアドバイスをいただければ幸いです。