I'm having a page which loads content using the load() method from jQuery.
Here is how it looks like (my main page) :
<?php include 'inc/header.php' ; ?>
Some Content
<button onclick="$('#loadContainer').load('contentToLoad.php')">Load</button>
<div id="loadContainer">
</div>
<?php include 'inc/footer.php'; ?>
Then I have my contentToLoad.php which is a php module, using sessions, functions from files ect ...
In the header.php, I have my head tags, a session_start(), and all the necessary files for the good working of contentToLoad.php included.
But it seems that my contentToLoad.php doesn't manage to reach the files and the declarations of the header.php.
Do I really need to rewrite all of these at the top of my contentToLoad.php ? Or is there a solution to make contentToLoad.php recognize the code from header.php ?
Thanks