문제

While I am developing my site I have it hosted on my current site in a folder. I'm not very good with levels, but this is how I set it up. In the top of my body I have:

<?php include('../includes/menu.php'); ?>

I have my page.php in /learn/ and the classes in /learn/includes Should i do ../../ ?

PS: I'm making my first CMS

도움이 되었습니까?

해결책

No, you would just need:

include('includes/menu.php');

다른 팁

If the includes directory is inside the learn directory then you would use:

<?php include('./includes/menu.php'); ?>

or

<?php include('includes/menu.php'); ?>
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top