Créer un projet dans Wampserver

Fermé
qclaurin Messages postés 1 Date d'inscription lundi 11 avril 2016 Statut Membre Dernière intervention 11 avril 2016 - Modifié par ^Abel^ le 11/04/2016 à 07:37
jordane45 Messages postés 38145 Date d'inscription mercredi 22 octobre 2003 Statut Modérateur Dernière intervention 25 avril 2024 - 11 avril 2016 à 14:47
Bonjour,

je viens d'installer Wampserver.

J'ai créer un projet dans wamp/www un dossier se nommant Mirgo.

J'ai faite dans mirgo un fichier mirgo.html

j'ai écris pour faire des test.

<html>
<head>
<title>PHP Test</title>
</head>
<body>
<?php echo '<p>Hello World</p>'; ?>
</body>
</html>

quand je vais dans localhost section mon projet ca m'affiche une erreur :

Ce site est inaccessible

Mirgo’s DNS address could not be found.

Merci de l'aide!

1 réponse

jordane45 Messages postés 38145 Date d'inscription mercredi 22 octobre 2003 Statut Modérateur Dernière intervention 25 avril 2024 4 650
11 avril 2016 à 14:47
Bonjour,
Quelle adresse apparait dans la barre d'adresse de ton navigateur ?

Vu que tu as mis du code php dans ton fichier .. l'extension de celui-ci doit être .php (et non .html)
renomme ton fichier.

Ensuite, via ton navigateur, va sur : http://localhost/Mirgo/mirgo.php

Sinon, tu peux aussi renommer ton fichier mirgo.html en index.php et là .. en arrivant sur le dossier de ton projet (via wamp / localhost ) ta page devrait s'afficher.


0