Including the same content for several pages

0

I'm developing a site that will have an increasing amount of pages. I would like to know if you can help me on how to include the same content on multiple pages as follows:

All pages are php but scheduled in html ;

I have a file rodape_conteudo.php and would like to include it in <div id="rodape"> ;

I tried to include through the code <?= include ("rodape_conteudo.php") ;?> which was what the searches I've done have always returned me, but that way, it's not rolling.

Content at the time I run the site is left blank, as if the code did not return anything.

This can be an error in the <?...> part or in the rodape_conteudo.php code?

    
asked by anonymous 03.03.2017 / 10:54

1 answer

1

Include will not work with <?= . This tag is a shortening of echo in PHP . If you do not want to print anything, use <?php , not <?= .

    
03.03.2017 / 14:49