Fichero: index.php
<html>
<head>
<title>Mi primer script PHP</title>
</head>
<body>
<p align="center">Primer script PHP</p>
<?php
$hoy = date("d-m-Y");
echo "La fecha actual es: $hoy.\n";
?>
</body>
</html>

Fichero: index.php
<html>
<head>
<title>Mi primer script PHP</title>
</head>
<body>
<p align="center">Primer script PHP</p>
<?php
$hoy = date("d-m-Y");
echo "La fecha actual es: $hoy.\n";
?>
</body>
</html>
Licensed under the Creative Commons Attribution Share Alike License 4.0