Práctica 1: HTML i PHP
En aquesta práctica, l’objectiu es crear un document en html utilitzant el Notepad++.
Despres de crear el document html, farem una mica de php per mostrar l’hora.
1.
<html>
<head>
<title> Prova 1 </title>
</head>
<body>
<h1> Hola web </h1>
Aquesta es la meva página <b> web </b>
</body>
</html>
2.
<html>
<head>
<title> Prova 1</title>
</head>
<body>
<h1> Hola web </h1>
Hola <b> Mon </b>
<?php
echo «La data actual es: «;
$fecha=time();
echo date(‘j l n Y’,$fecha);
?>
</body>
</html>
Deja un comentario