2011-07-27から1日間の記事一覧

PHPで多段includeするときの話

嵌ったのでメモ test/ |-exam/ | |-main.php | |-lib/ |-class.php | |-config.php ってプログラムがあって、 main.php include_once('../lib/class.php'); class.php include_once('./config.php'); config.php define('SERVER_NAME','localhost'); main.ph…