i made a website with a include but he doesn’t include it from the home out of the folder “inc”
my code on the home:
include 'http://kingdomserver.000webhostapp.com/inc/menu.php';
my code in the folder inc:
<?php
session_start();
if ($_SESSION["loged_in"] = "true" and $_SESSION["user"] != "") {
echo '
<div class="dropdown">
<button class="dropbtn" onclick="myFunction()">User: '. $_SESSION["user"] . '
<i class="fa fa-caret-down"></i>
</button>
<div class="dropdown-content" id="myDropdown">
<a href="/account">Account</a>
<a href="/log-out">Log-Out</a>
</div>
</div>
';
include '/inc/menu.html';
} else {
echo '
<div class="dropdown">
<button class="dropbtn" onclick="myFunction()">account
<i class="fa fa-caret-down"></i>
</button>
<div class="dropdown-content" id="myDropdown">
<a href="/log-in">Log In</a>
<a href="/register">Register</a>
</div>
</div>
';
}
?>
</div>