Vincent-Xavier
public text v1 · immutable<html>
<body>
<font size="2" face="Arial">Le texte en HTML</font>
<?php
include("toto.inc.php"); // on appelle le fichier
?>
</body>
</html>
Le texte en HTML et celui en PHP. Il est 18h16.
Le code PHP de toto.inc.php
<?php
$heure = date("H\hi");
print("<center><font size=\"2\" face=\"Arial\"> et celui en PHP. Il est $heure.</font></center>");