Fonction include qui ne marche pas
Bonjour je voudrais creer un page un header et un footer
je ne sais pas pourquoi mais lorsque j ouvre ma page index avec internet explorer elle ignore ma commande include
Savez vous pourquoi ?
Voila le code de l index
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Document sans titre</title>
</head>
<body>
<?php include("partials/header.php"); ?>
Bienvenue
c un test
</body>
</html> |
et le header
Code:
1 2 3 4 5 6 7 8 9 10 11 12
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>header</title>
</head>
<body>
header
</body>
</html> |
Merci