PHP include_once

4 replies · opened Aug 24, 2016

Kkhalil9Aug 24, 2016

I am attempting to use include_once to make the header and footer the same on all pages for conformity and ease of manipulation. My current problem is that the pages are not loading smoothly. Could you please take a look at the page and tell me the reasons for haphazard way that the pages load.

http://mbtechja.com/huntersthreadsv1/index.php

Thanks for your time,

Khalil

DdaihloAug 25, 2016

Your wrapper div is closed after the header but it should wrap the whole page.

Kkhalil9Aug 25, 2016

I have attached screenshots of my header.php file and also my implementation of <?php include_once("header.php"); ?> in my index.php file and as you can see there is no </div> after the </header>

I am a bit perplexed as to how this is happening and I am asking for some more help on this matter.

Kkhalil9Aug 25, 2016

Attached is a view of the rendered page using Chrome Developer tools, The wrapper div is closed but the question is how did it get there as it is not in my files.

Kkhalil9Aug 25, 2016

Found it

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard