php - Include header, how to? -


<html> <head> <!--#include virtual="header.php" --> </head>  <body> aa </body> </html> 

i'm trying put header in different file , call include. can't make work. right text in header word header. header at: www.chusmix.com/game/header.php how can call it? don't care if use include virtual, don't know how it.

thanks

<?php include('header.php'); ?> 

your include needs in php -- way attempted include old method of ssi (sever side includes) , has nothing php.

in order include way, page doing including must parsed php, , on servers means ending filename .php extension. can have plain html in .php file can rename file (if not already) .php , include line wrote above.


Comments