版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/jmlxx/article/details/80665477
php path
加载文件,当前路径定义:
define('PHP_ROOT_NEW', str_replace("\\", '/', substr(dirname(__FILE__), 0,-4)));
require_once PHP_ROOT_NEW.'include/common.inc.php';
如上文件为index.php
则执行文件为: php index.php