0
我有这样的结构:在php中添加相关链接包含文件?
root/
directory/
index.php
includes/
header.html
css/
style.css
pages/
somefile.php
somefile2.php
所有三个文件(的index.php,somefile.php和somefile2.php)包含了header.html。 header.html具有到CSS的相关链接。由于我不是一个专业的PHP,我不知道如何设置这个路径,以便它可以在所有三个页面中工作。我见过它说我必须定义的PHP路径,但这是设置为根/而不是root /目录/在www.mysite.com/directory/