Créer un fichier test.php
utilisant la fonction phpinfo
et le tester (la fonction renvoie les informations techniques sur le module PHP installé sur le serveur).
Créer un fichier hello.php
et le tester en accédant à la page.
<?php
echo "Hello world !";
?>
Transformer le fichier PHP pour qu'il renvoie une page HTML.
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Hello PHP !</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
<p>
<?php
echo "Hello world !";
?>
</p>
</body>
</html>