
php不在同一目录文件怎么包含进来,路径不会写
比如当前文件为http//xx.cn/xx/xx/xx/index.php,现在有一个文件http://xx.cn/xx/aa/ss.php用include()怎么把后者...
比如当前文件为http//xx.cn/xx/xx/xx/index.php,现在有一个文件http://xx.cn/xx/aa/ss.php
用include()怎么把后者包含到前者里面,用相对路径
我试过
include('../xx/aa/ss.php');
include('.../xx/aa/ss.php');
include('..../xx/aa/ss.php');
都不行,请问相对路径怎么填,
include('...../xx/aa/ss.php';也不行 展开
用include()怎么把后者包含到前者里面,用相对路径
我试过
include('../xx/aa/ss.php');
include('.../xx/aa/ss.php');
include('..../xx/aa/ss.php');
都不行,请问相对路径怎么填,
include('...../xx/aa/ss.php';也不行 展开
1个回答
展开全部
绝对路径 /xx/aa/ss.php
相对路径../../aa/ss.php
相对路径../../aa/ss.php
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询