Bonjours,
j´ai une image du genre chargement, que j´aimerais afficher, voici comment j´aimerais le réalisé:
<?php
function affichant l´image
?>
code html tout le long
<?php
code php étant a la fin de la page demandant de ne plus afficher l´image de chargement
?>
j´ai fait ceci:
<?php
include("includes/config.ge.php"); // Config général
function Chargement()
{
header ("Content-type: image/gif");
$image =
imagecreatefromgif("images/site/chargement.gif");
}
ob_start("Chargement");
?>
<?php ob_end_flush(); ?>
Ca ne marche pas, comment pourrais-je proceder ?? merci !