Why does my PHP appear to be commented out when I view it in the browser? <!--?php include(“header.php”); ?-->

前端 未结 5 727
感情败类
感情败类 2020-12-21 15:26

I am building a html page but want to break the header out so I dont have to keep changing all the files.

I am attempting to add a php.include file and save the pag

5条回答
  •  情书的邮戳
    2020-12-21 15:47

    This is what I got, I took your code and saved it as index.php

    
    
    
    
        
    
        Chartego | Creating Socially Inflential People with great images and videos
         
       
    
    
    
    
    
      
    content

    I created this in header.php

    
    

    This is the output:

    Hello World
    content
    

提交回复
热议问题