質問

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