-2

I have created a top bar and a bottom bar for my website's index. I have isolated both of them in two files, the header.php, which controls the top bar and the footer.php, which controls the bottom bar.

<? php include "footer.php";?> <? php include "header.php";?> 

while including the tags for both header and footer files and running the index.php file in chrome doesnot show the layout instead show the code.

Funk Forty Niner
  • 74,450
  • 15
  • 68
  • 141
sanchit
  • 41
  • 1
  • 8

1 Answers1

0

The only explanation in my opinion is that you run the index.php file directly in the browser. Do you use a web server as xampp?

FSMAWI
  • 1