include_once dirname(dirname(__FILE__)) . "/define.php";include_once dirname(dirname(__FILE__)) . "\define.php";
<?php $dir = dirname(__FILE__); ?>在PHP5.3中,增加了一个新的常量__DIR__,指向当前执行的PHP脚本所在的目录。
include_once dirname(__DIR__) . "/define.php";include_once dirname(__DIR__) . "\define.php";
原文:https://www.cnblogs.com/starshine-zhp/p/13204460.html