Nclude php

Fermé
Shaytan17 - 27 oct. 2009 à 18:17
 Shaytan17 - 27 oct. 2009 à 23:34
Bonjour,

je souhaite créer un site. J'ai un fichier "index.html" dans lequel je souhaite inclure un menu. Dans le body j'écris donc "<?php include ('menu.php'); ?>

Ensuite je crée un fichier menu.php et je veux faire un test voir si ca marche. "<?php echo("ca marche"); ?>

Sauf que quand je lance ma page index.html bah ca marche pas.. eheh

Une aide?^^

Merci a tous

Cordialement,

Cedric.B
A voir également:

4 réponses

sims06 Messages postés 884 Date d'inscription mardi 4 août 2009 Statut Membre Dernière intervention 2 août 2022 78
27 oct. 2009 à 18:19
Impossible d'exécuter du code PHP dans une page html. Renommes ton index en index.php.
0
Ca m'affiche toujours pas "ca marche"
0
sims06 Messages postés 884 Date d'inscription mardi 4 août 2009 Statut Membre Dernière intervention 2 août 2022 78
27 oct. 2009 à 19:35
Tente de mettre :

<?php print ("ça marche"); ?>
0
again & again ... =S
0