Page php en PNG
Résolu
Fnek
Messages postés
38
Date d'inscription
Statut
Membre
Dernière intervention
-
Fnek Messages postés 38 Date d'inscription Statut Membre Dernière intervention -
Fnek Messages postés 38 Date d'inscription Statut Membre Dernière intervention -
Bonjour,
Je souhaite faire afficher ma page php en png sur mon navigateur.
Complètement novice je nage complètement.
C'est pourquoi je solicite votre aide.
La page que j'ai créer fonctionne très bien.
Je voudrais cependant qu'elle s'affiche au format PNG.
J'ai donc utiliser la fonction
Mais quand je vais sur ma page firefox m'affiche
l'image ne peu etre afficher car elle contient des erreurs.
Pourriez vous jeter un oeil (pas trop loin ça fait mal) svp.
C'est une page qui affiche le résultat d'un formulaire sous forme de fiche.
Et je souhaite pouvoir faire un simple copier pour pouvoir enregistrer cette fiche en tant qu'image ou simplement la coller dans un forum quelconque.
Je souhaite faire afficher ma page php en png sur mon navigateur.
Complètement novice je nage complètement.
C'est pourquoi je solicite votre aide.
La page que j'ai créer fonctionne très bien.
Je voudrais cependant qu'elle s'affiche au format PNG.
J'ai donc utiliser la fonction
<?php
header ("Content-type: image/png");
?>
Mais quand je vais sur ma page firefox m'affiche
l'image ne peu etre afficher car elle contient des erreurs.
Pourriez vous jeter un oeil (pas trop loin ça fait mal) svp.
C'est une page qui affiche le résultat d'un formulaire sous forme de fiche.
Et je souhaite pouvoir faire un simple copier pour pouvoir enregistrer cette fiche en tant qu'image ou simplement la coller dans un forum quelconque.
<?php header ("Content-type: image/png");?>
<html><head>
<meta http-equiv="Content-type" content="text/html; charset=UTF-8">
<title>Fiche réglage</title>
</head><body style="color: rgb(0, 0, 0); background-color: red;" alink="#000099" link="#000099" vlink="#990099">
<table style="text-align: left; width: 1055px; height: 689px;" border="1" cellpadding="2" cellspacing="2">
<tbody>
<tr style="background-color: red; font-weight: bold;" align="center">
<td colspan="3" rowspan="1" style="vertical-align: top; height: 150px; width: 150px; background-color: white;"><img style="border: 0px solid ; width: 1039px; height: 242px;" alt="" src="../Images/logo.png"> </td>
</tr>
<tr>
<td style="vertical-align: top; height: 183px; background-color: white; text-align: center; width: 150px;"><br>
</td>
<td style="vertical-align: top; height: 183px; background-color: white; text-align: center;">
<form method="post" action="envoi.php" name="Réglage PJC">
<table style="text-align: left; width: 730px; background-color: transparent;" border="0" cellpadding="2" cellspacing="2">
<tbody>
<tr>
<td colspan="4" rowspan="1" style="vertical-align: top; text-align: center; width: 264px;"><big style="text-decoration: underline;"><big><big><big><b><?php $T = htmlentities($_POST['Titre']);
echo "$T";?></b></big></big></big></big><br>
</td>
</tr>
<tr>
<td style="vertical-align: top;"><br>
</td>
<td style="vertical-align: top;"><br>
</td>
<td style="vertical-align: top;"><br>
</td>
<td style="vertical-align: top;"><br>
</td>
</tr>
<tr>
<td style="vertical-align: top; text-align: center; width: 115px;"><span style="text-decoration: underline; font-weight: bold;">Date</span><br>
</td>
<td style="vertical-align: top; text-align: center; width: 134px;"><?php $date = date("d-m-Y");
Print("$date");
?><br>
</td>
<td style="vertical-align: top; text-align: center; width: 177px;"><br>
</td>
<td style="vertical-align: top; width: 264px; text-align: center;"><br>
</td>
</tr>
<tr>
<td style="vertical-align: top; text-align: center; width: 115px; background-color: transparent;"><span style="font-weight: bold; text-decoration: underline;">Régleur</span><br>
</td>
<td style="vertical-align: top; text-align: center; width: 134px;"><?php $R = htmlentities($_POST['Regleur']);
echo "$R";?>
</td>
<td colspan="2" rowspan="1" style="vertical-align: top; text-align: center; width: 177px;"><span style="text-decoration: underline; font-weight: bold;">Commentaires</span><br>
</td>
</tr>
<tr>
<td style="vertical-align: top; text-align: center; width: 115px; background-color: transparent;"><span style="font-weight: bold; text-decoration: underline;">Team</span><br>
</td>
<td style="vertical-align: top; text-align: center; width: 134px;"><?php $Te = htmlentities($_POST['Team']);
echo "$Te";?><br>
</td>
<td colspan="2" rowspan="4" style="vertical-align: top; text-align: center; width: 177px;"><?php if (isset($_POST['Sensations']))
{
echo $_POST['Sensations'];
}?><br>
</td>
</tr>
<tr>
<td style="vertical-align: top; text-align: center; width: 115px;"><span style="font-weight: bold; text-decoration: underline;">Circuit</span><br>
</td>
<td style="vertical-align: top; text-align: center; width: 134px;"><?php $Ci = htmlentities($_POST['Circuit']);
echo "$Ci";?>
<br>
</td>
</tr>
<tr>
<td style="vertical-align: top; text-align: center; width: 115px;"><span style="font-weight: bold; text-decoration: underline;">Météo</span><br>
</td>
<td style="vertical-align: top; text-align: center; width: 134px;"><?php $M = htmlentities($_POST['Meteo']);
echo "$M";?>
<br>
</td>
</tr>
<tr>
<td style="vertical-align: top; text-align: center; width: 115px;"><span style="font-weight: bold; text-decoration: underline;">Chrono
au tour</span><br>
</td>
<td style="vertical-align: top; text-align: center; width: 134px;"><?php $C = htmlentities($_POST['Chrono']);
echo "$C";?><br>
</td>
</tr>
</tbody>
</table>
<br>
<table style="text-align: left; width: 720px;" border="0" cellpadding="2" cellspacing="2">
<tbody>
<tr align="center">
<td colspan="3" rowspan="1" style="vertical-align: top; background-color: black;"><big style="text-decoration: underline; color: white;"><big><big><span style="font-weight: bold;">AVANT</span></big></big></big><br>
</td>
</tr>
<tr>
<td style="vertical-align: top; text-align: center; width: 240px;"><span style="font-weight: bold; text-decoration: underline;">Barre
stabilisatrice</span><br>
</td>
<td style="vertical-align: top; text-align: center; width: 240px;"><span style="font-weight: bold; text-decoration: underline;">Angle
de pincement</span><br>
</td>
<td style="vertical-align: top; text-align: center;"><span style="text-decoration: underline; font-weight: bold;">Appuis</span><br>
</td>
</tr>
<tr>
<td style="vertical-align: top; text-align: center;"><?php $BS = htmlentities($_POST['Barre_stabilisatrice_AV']);
echo "$BS";?>
<br>
</td>
<td style="vertical-align: top; text-align: center;"><?php $A = htmlentities($_POST['Angle_de_pincement_AV']);
echo "$A";?>
<br>
</td>
<td style="vertical-align: top; text-align: center;"><?php $AA = htmlentities($_POST['Appuis_AV']);
echo "$AA";?>
<br>
</td>
</tr>
</tbody>
</table>
<br>
<table style="text-align: left; width: 720px;" border="0" cellpadding="2" cellspacing="2">
<tbody>
<tr>
<td style="vertical-align: top; text-align: center; font-weight: bold; color: white; background-color: black;"><big><big>Avant
Gauche<br>
</big></big></td>
<td style="vertical-align: top; font-weight: bold; color: white; background-color: white;"><big><big><br>
</big></big></td>
<td style="vertical-align: top; text-align: center; font-weight: bold; color: white; background-color: black;"><big><big>Avant
Droit<br>
</big></big></td>
</tr>
<tr>
<td style="vertical-align: top; text-align: right;"><?php $PA = htmlentities($_POST['Pression_AVG']);
echo "$PA";?><br>
</td>
<td style="vertical-align: top; text-align: center;">Pression
des pneus<br>
</td>
<td style="vertical-align: top;"><?php $PD = htmlentities($_POST['Pression_AVD']);
echo "$PD";?><br>
</td>
</tr>
<tr>
<td style="vertical-align: top; text-align: right;"><?php $ACA = htmlentities($_POST['Angle_de_chasse_AVG']);
echo "$ACA";?><br>
</td>
<td style="vertical-align: top; text-align: center;">Angle
de chasse<br>
</td>
<td style="vertical-align: top;"><?php $ACA = htmlentities($_POST['Angle_de_chasse_AVD']);
echo "$ACA";?><br>
</td>
</tr>
<tr>
<td style="vertical-align: top; text-align: right;"><?php $CA = htmlentities($_POST['Carrossage_AVG']);
echo "$CA";?><br>
</td>
<td style="vertical-align: top; text-align: center;">Carrossage<br>
</td>
<td style="vertical-align: top;"><?php $CA = htmlentities($_POST['Carrossage_AVD']);
echo "$CA";?><br>
</td>
</tr>
<tr>
<td style="vertical-align: top; text-align: right;"><?php $GS = htmlentities($_POST['Garde_au_sol_AVG']);
echo "$GS";?><br>
</td>
<td style="vertical-align: top; text-align: center;">Garde
au sol<br>
</td>
<td style="vertical-align: top;"><?php $GS = htmlentities($_POST['Garde_au_sol_AVD']);
echo "$GS";?><br>
</td>
</tr>
<tr>
<td style="vertical-align: top; text-align: right;"><?php $NR = htmlentities($_POST['Niveau_des_ressorts_AVG']);
echo "$NR";?><br>
</td>
<td style="vertical-align: top; text-align: center;">Niveau
des ressorts<br>
</td>
<td style="vertical-align: top;"><?php $NR = htmlentities($_POST['Niveau_des_ressorts_AVD']);
echo "$NR";?><br>
</td>
</tr>
<tr>
<td style="vertical-align: top; text-align: right;"><?php $BA = htmlentities($_POST['Butee_AVG']);
echo "$BA";?><br>
</td>
<td style="vertical-align: top; text-align: center;">Butée<br>
</td>
<td style="vertical-align: top;"><?php $BA = htmlentities($_POST['Butee_AVD']);
echo "$BA";?><br>
</td>
</tr>
<tr>
<td style="vertical-align: top; text-align: right;"><?php $CL = htmlentities($_POST['Compression_lente_AVG']);
echo "$CL";?><br>
</td>
<td style="vertical-align: top; text-align: center;">Compression
lente<br>
</td>
<td style="vertical-align: top;"><?php $CL = htmlentities($_POST['Compression_lente_AVD']);
echo "$CL";?><br>
</td>
</tr>
<tr>
<td style="vertical-align: top; text-align: right;"><?php $RL = htmlentities($_POST['Rebond_lent_AVG']);
echo "$RL";?><br>
</td>
<td style="vertical-align: top; text-align: center;">Rebond
lent<br>
</td>
<td style="vertical-align: top;"><?php $RL = htmlentities($_POST['Rebond_lent_AVD']);
echo "$RL";?><br>
</td>
</tr>
<tr>
<td style="vertical-align: top; text-align: right;"><?php $CR = htmlentities($_POST['Compression_rapide_AVG']);
echo "$CR";?><br>
</td>
<td style="vertical-align: top; text-align: center;">Compression
rapide<br>
</td>
<td style="vertical-align: top;"><?php $CR = htmlentities($_POST['Compression_rapide_AVD']);
echo "$CR";?><br>
</td>
</tr>
<tr>
<td style="vertical-align: top; text-align: right;"><?php $RR = htmlentities($_POST['Rebond_rapide_AVG']);
echo "$RR";?><br>
</td>
<td style="vertical-align: top; text-align: center;">Rebond
rapide<br>
</td>
<td style="vertical-align: top;"><?php $RR = htmlentities($_POST['Rebond_rapide_AVD']);
echo "$RR";?><br>
</td>
</tr>
<tr>
<td style="vertical-align: top; text-align: right;"><br>
</td>
<td style="vertical-align: top;"><br>
</td>
<td style="vertical-align: top;"><br>
</td>
</tr>
<tr>
<td style="vertical-align: top; text-align: right;"><?php $PP = htmlentities($_POST['Pression_ARG']);
echo "$PP";?><br>
</td>
<td style="vertical-align: top; text-align: center;">Pression
des pneus</td>
<td style="vertical-align: top;"><?php $PP = htmlentities($_POST['Pression_ARD']);
echo "$PP";?><br>
</td>
</tr>
<tr>
<td style="vertical-align: top; text-align: right;"><?php $CA = htmlentities($_POST['Carrossage_ARG']);
echo "$CA";?><br>
</td>
<td style="vertical-align: top; text-align: center;">Carrossage</td>
<td style="vertical-align: top;"><?php $CA = htmlentities($_POST['Carrossage_ARD']);
echo "$CA";?><br>
</td>
</tr>
<tr>
<td style="vertical-align: top; text-align: right;"><?php $GS = htmlentities($_POST['Garde_au_sol_ARG']);
echo "$GS";?><br>
</td>
<td style="vertical-align: top; text-align: center;">Garde
au sol</td>
<td style="vertical-align: top;"><?php $GS = htmlentities($_POST['Garde_au_sol_ARD']);
echo "$GS";?><br>
</td>
</tr>
<tr>
<td style="vertical-align: top; text-align: right;"><?php $NR = htmlentities($_POST['Niveau_des_ressorts_ARG']);
echo "$NR";?><br>
</td>
<td style="vertical-align: top; text-align: center;">Niveau
des ressorts</td>
<td style="vertical-align: top;"><?php $NR = htmlentities($_POST['Niveau_des_ressorts_ARD']);
echo "$NR";?><br>
</td>
</tr>
<tr>
<td style="vertical-align: top; text-align: right;"><?php $BA = htmlentities($_POST['Butee_ARG']);
echo "$BA";?><br>
</td>
<td style="vertical-align: top; text-align: center;">Butée</td>
<td style="vertical-align: top;"><?php $BA = htmlentities($_POST['Butee_ARD']);
echo "$BA";?><br>
</td>
</tr>
<tr>
<td style="vertical-align: top; text-align: right;"><?php $CL = htmlentities($_POST['Compression_lente_ARG']);
echo "$CL";?><br>
</td>
<td style="vertical-align: top; text-align: center;">Compression
lente</td>
<td style="vertical-align: top;"><?php $CL = htmlentities($_POST['Compression_lente_ARD']);
echo "$CL";?><br>
</td>
</tr>
<tr>
<td style="vertical-align: top; text-align: right;"><?php $RL = htmlentities($_POST['Rebond_lent_ARG']);
echo "$RL";?><br>
</td>
<td style="vertical-align: top; text-align: center;">Rebond
lent</td>
<td style="vertical-align: top;"><?php $RL = htmlentities($_POST['Rebond_lent_ARD']);
echo "$RL";?><br>
</td>
</tr>
<tr>
<td style="vertical-align: top; text-align: right;"><?php $CR = htmlentities($_POST['Compression_rapide_ARG']);
echo "$CR";?><br>
</td>
<td style="vertical-align: top; text-align: center;">Compression
rapide</td>
<td style="vertical-align: top;"><?php $CR = htmlentities($_POST['Compression_rapide_ARD']);
echo "$CR";?><br>
</td>
</tr>
<tr>
<td style="vertical-align: top; text-align: right;"><?php $RR = htmlentities($_POST['Rebond_rapide_ARG']);
echo "$RR";?><br>
</td>
<td style="vertical-align: top; text-align: center;">Rebond
rapide</td>
<td style="vertical-align: top;"><?php $RR = htmlentities($_POST['Rebond_rapide_ARD']);
echo "$RR";?><br>
</td>
</tr>
<tr>
<td style="vertical-align: top; text-align: center; font-weight: bold; color: white; background-color: black;"><big><big>Arrière
Gauche<br>
</big></big></td>
<td style="vertical-align: top; text-align: center; font-weight: bold; color: white; background-color: white;"><big><big><br>
</big></big></td>
<td style="vertical-align: top; text-align: center; font-weight: bold; color: white; background-color: black;"><big><big>Arrière
Droit<br>
</big></big></td>
</tr>
</tbody>
</table>
<br>
<table style="text-align: left; width: 720px;" border="0" cellpadding="2" cellspacing="2">
<tbody>
<tr style="color: white;" align="center">
<td colspan="3" rowspan="1" style="vertical-align: top; background-color: black;"><big style="text-decoration: underline;"><big><big><span style="font-weight: bold;">ARRIERE</span></big></big></big></td>
</tr>
<tr>
<td style="vertical-align: top; text-align: center;">Barre
stabilisatrice</td>
<td style="vertical-align: top; text-align: center;">Angle
de pincement</td>
<td style="vertical-align: top; text-align: center;">Appuis</td>
</tr>
<tr>
<td style="vertical-align: top; text-align: center;"><?php $BA = htmlentities($_POST['Barre_stabilisatrice_AR']);
echo "$BA";?><br>
</td>
<td style="vertical-align: top; text-align: center;"><?php $A = htmlentities($_POST['Angle_de_pincement_AR']);
echo "$A";?><br>
</td>
<td style="vertical-align: top; text-align: center; width: 240px;"><?php $AA = htmlentities($_POST['Appuis_AR']);
echo "$AA";?><br>
</td>
</tr>
</tbody>
</table>
<br>
<table style="text-align: left; width: 720px;" border="0" cellpadding="2" cellspacing="2">
<tbody>
<tr>
<td colspan="2" rowspan="1" style="vertical-align: top; text-align: center; background-color: black;"><big><big><span style="color: white; font-weight: bold;">Freins</span></big></big><br>
</td>
<td colspan="2" rowspan="1" style="vertical-align: top; text-align: center; background-color: black;"><big><big><span style="color: white; font-weight: bold;">Alignement</span></big></big><br>
</td>
</tr>
<tr>
<td style="vertical-align: top; text-align: center;">Pression
de freinage<br>
</td>
<td style="vertical-align: top; text-align: center;"><?php $PF = htmlentities($_POST['Pression_de_freinage']);
echo "$PF";?><br>
</td>
<td style="vertical-align: top; text-align: center;">Rapport
de direction<br>
</td>
<td style="vertical-align: top; text-align: center;"><?php $RD = htmlentities($_POST['Rapport_de_direction']);
echo "$RD";?><br>
</td>
</tr>
<tr>
<td style="vertical-align: top; text-align: center;">Equilibre
de freinage<br>
</td>
<td style="vertical-align: top; text-align: center;"><?php $EF = htmlentities($_POST['Equilibre_de_freinage']);
echo "$EF";?><br>
</td>
<td colspan="2" rowspan="1" style="vertical-align: top; text-align: center; background-color: black;"><big><big><span style="color: white; font-weight: bold;">Châssis</span></big></big><br>
</td>
</tr>
<tr>
<td style="vertical-align: top; text-align: center;">Conduits
des freins<br>
</td>
<td style="vertical-align: top; text-align: center;"><?php $CF = htmlentities($_POST['Conduits_des_freins']);
echo "$CF";?><br>
</td>
<td style="vertical-align: top; text-align: center;">Réglage
poids<br>
</td>
<td style="vertical-align: top; text-align: center;"><?php $RP = htmlentities($_POST['Reglage_poids']);
echo "$RP";?><br>
</td>
</tr>
<tr>
<td style="vertical-align: top; text-align: center;">Contrôle
de motricité<br>
</td>
<td style="vertical-align: top; text-align: center;"><?php $CM = htmlentities($_POST['Controle_de_motricite']);
echo "$CM";?><br>
</td>
<td style="vertical-align: top; text-align: center;">Répartition
latérale du poids<br>
</td>
<td style="vertical-align: top; text-align: center;"><?php $RL = htmlentities($_POST['Repartition_laterale_du_poids']);
echo "$RL";?><br>
</td>
</tr>
<tr>
<td colspan="2" rowspan="1" style="vertical-align: top; text-align: center; background-color: black;"><big style="font-weight: bold;"><big><span style="color: white;">Moteur</span></big></big><br>
</td>
<td style="vertical-align: top; text-align: center;">Répartition
longitudinale du poids<br>
</td>
<td style="vertical-align: top; text-align: center;"><?php $RW = htmlentities($_POST['Repartition_longitudinale_du_poids']);
echo "$RW";?><br>
</td>
</tr>
<tr>
<td style="vertical-align: top; text-align: center;">Charge
de carburant<br>
</td>
<td style="vertical-align: top; text-align: center;"><?php $CC = htmlentities($_POST['Charge_de_carburant']);
echo "$CC";?><br>
</td>
<td colspan="2" rowspan="1" style="vertical-align: top; text-align: center; background-color: black;"><big style="font-weight: bold; color: white;"><big>Différentiel</big></big><br>
</td>
</tr>
<tr>
<td style="vertical-align: top; text-align: center;">Charge
de carburant (Qualif)<br>
</td>
<td style="text-align: center;"><?php $CQ = htmlentities($_POST['Charge_de_carburant_qualif']);
echo "$CQ";?><br>
</td>
<td style="vertical-align: top; text-align: center;">Blocage
différentiel en accélération<br>
</td>
<td style="text-align: center;"><?php $BDA = htmlentities($_POST['Blocage_de_differentiel_en_acceleration']);
echo "$BDA";?><br>
</td>
</tr>
<tr>
<td style="vertical-align: top; text-align: center;">Pression
de Wastegate<br>
</td>
<td style="vertical-align: top; text-align: center;"><?php $PW = htmlentities($_POST['Pression_de_Wastegate']);
echo "$PW";?><br>
</td>
<td style="vertical-align: top; text-align: center;">Blocage
différentiel en décélération<br>
</td>
<td style="text-align: center;"><?php $BDD = htmlentities($_POST['Blocage_de_differentiel_en_deceleration']);
echo "$BDD";?><br>
</td>
</tr>
<tr>
<td style="vertical-align: top; text-align: center;">Cartographie
de frein<br>
</td>
<td style="vertical-align: top; text-align: center;"><?php $CF = htmlentities($_POST['Cartographie_de_frein']);
echo "$CF";?><br>
</td>
<td style="vertical-align: top; text-align: center;">Blocage
différentiel pré-charge<br>
</td>
<td style="vertical-align: top; text-align: center;"><?php $DP = htmlentities($_POST['Blocage_de_differentiel_pre_charge']);
echo "$DP";?><br>
</td>
</tr>
<tr>
<td style="vertical-align: top; text-align: center;">Restricteur
d'air<br>
</td>
<td style="vertical-align: top; text-align: center;"><?php $RA = htmlentities($_POST['Restricteur_dair']);
echo "$RA";?><br>
</td>
<td style="vertical-align: top; text-align: center;">Vérouillage
visqueux<br>
</td>
<td style="vertical-align: top; text-align: center;"><?php $VV = htmlentities($_POST['Verouillage_visqueux']);
echo "$VV";?><br>
</td>
</tr>
<tr>
<td style="vertical-align: top;"><br>
</td>
<td style="vertical-align: top; width: 148px;"><br>
</td>
<td style="vertical-align: top; text-align: center;">Radiateur<br>
</td>
<td style="vertical-align: top; text-align: center; width: 148px;"><?php $RD = htmlentities($_POST['Radiateur']);
echo "$RD";?><br>
</td>
</tr>
</tbody>
</table>
<br>
<table style="text-align: left; width: 360px; margin-left: auto; margin-right: auto;" border="0" cellpadding="2" cellspacing="2">
<tbody>
<tr align="center">
<td style="vertical-align: top; background-color: black;" rowspan="1" colspan="2"><big style="color: white;"><big><span style="font-weight: bold;">Rapports</span></big></big><br>
</td>
</tr>
<tr>
<td style="vertical-align: top; text-align: center;">Dernier
rapport<br>
</td>
<td style="vertical-align: top;"><?php $DR = htmlentities($_POST['Dernier_rapport']);
echo "$DR";?><br>
</td>
</tr>
<tr>
<td style="vertical-align: top; text-align: center;">1er<br>
</td>
<td style="vertical-align: top;"><?php $UN = htmlentities($_POST['un']);
echo "$UN";?><br>
</td>
</tr>
<tr>
<td style="vertical-align: top; text-align: center;">2e<br>
</td>
<td style="vertical-align: top;"><?php $DE = htmlentities($_POST['deux']);
echo "$DE";?><br>
</td>
</tr>
<tr>
<td style="vertical-align: top; text-align: center;">3e<br>
</td>
<td style="vertical-align: top;"><?php $TR = htmlentities($_POST['trois']);
echo "$TR";?><br>
</td>
</tr>
<tr>
<td style="vertical-align: top; text-align: center;">4e<br>
</td>
<td style="vertical-align: top;"><?php $QU = htmlentities($_POST['quatre']);
echo "$QU";?><br>
</td>
</tr>
<tr>
<td style="vertical-align: top; text-align: center;">5e<br>
</td>
<td style="vertical-align: top;"><?php $CI = htmlentities($_POST['cinq']);
echo "$CI";?><br>
</td>
</tr>
<tr>
<td style="vertical-align: top; text-align: center;">6e<br>
</td>
<td style="vertical-align: top;"><?php $SI = htmlentities($_POST['six']);
echo "$SI";?><br>
</td>
</tr>
<tr>
<td style="vertical-align: top; text-align: center;">7e<br>
</td>
<td style="vertical-align: top;"><?php $SE = htmlentities($_POST['sept']);
echo "$SE";?><br>
</td>
</tr>
<tr>
<td style="vertical-align: top; text-align: center;">8e<br>
</td>
<td style="vertical-align: top;"><?php $HU = htmlentities($_POST['huit']);
echo "$HU";?><br>
</td>
</tr>
<tr>
<td style="vertical-align: top; text-align: center;">Sensibilité
à la <br>
vitesse maximale<br>
</td>
<td style="width: 170px;"><?php $SM = htmlentities($_POST['Sensibilite_a_la_vitesse_maximale']);
echo "$SM";?><br>
</td>
</tr>
</tbody>
</table>
</form>
<br>
</td>
<td style="vertical-align: top; height: 183px; width: 150px; background-color: white;"><br>
</td>
</tr>
<tr>
<td colspan="3" rowspan="1" style="vertical-align: top; background-color: white; text-align: center;"><br>
<br>
</td>
</tr>
</tbody>
</table>
</body></html>
A voir également:
- Page php en PNG
- Supprimer page word - Guide
- Mettre google en page d'accueil - Guide
- Traduire une page en français - Guide
- Imprimer tableau excel sur une page - Guide
- Page privée - Guide
7 réponses
Hello,
simplement changer le content-type de la page ne va pas convertir ton html en image png, il va simplement interpréter ton html comme si c'était une image d'où l'erreur, il faut quelque chose qui va prendre ta page et la convertir en image.
simplement changer le content-type de la page ne va pas convertir ton html en image png, il va simplement interpréter ton html comme si c'était une image d'où l'erreur, il faut quelque chose qui va prendre ta page et la convertir en image.
Et pourriez vous me diriger vers une procedure a suivre svp?
Le but etant pour moi de ne pas utiliser de bdd.
Excusez mon incompetence et/ou ignorance.
Le but etant pour moi de ne pas utiliser de bdd.
Excusez mon incompetence et/ou ignorance.
Il est en effet possible de faire des images en PHP mais pas à ce degré de complexicité je pense.
On peut l'utiliser pour mettre un watermark (signer une image qu'un utilisateur envoi par le logo de son site par exemple).
On peut également écrire du texte, et compiler plusieurs images et donc avoir un résultat un peu plus compliqué.
Mais cela se fait élément par élément en gérant la position x y, en écrasant plusieurs fois la même image pour que tout les éléments s'y retrouvent les uns après les autres.
Cela me parait extrêmement complexe de le faire pour une page entière de HTML.
https://openclassrooms.com/fr/courses/918836-concevez-votre-site-web-avec-php-et-mysql/916429-creez-des-images-en-php
(Après je ne connais pas vraiment d'autres alternatives.)
On peut l'utiliser pour mettre un watermark (signer une image qu'un utilisateur envoi par le logo de son site par exemple).
On peut également écrire du texte, et compiler plusieurs images et donc avoir un résultat un peu plus compliqué.
Mais cela se fait élément par élément en gérant la position x y, en écrasant plusieurs fois la même image pour que tout les éléments s'y retrouvent les uns après les autres.
Cela me parait extrêmement complexe de le faire pour une page entière de HTML.
https://openclassrooms.com/fr/courses/918836-concevez-votre-site-web-avec-php-et-mysql/916429-creez-des-images-en-php
(Après je ne connais pas vraiment d'autres alternatives.)
Avec wkhtmltoimage tu peux faire ça, voici par exemple une bibliothèque en php qui s'interface avec : https://github.com/KnpLabs/snappy , le mieux est d'essayer de trouver un webservice gratuit qui fait ça, c'est plus simple.
Perso je crache souvent sur le SaaS. Déjà parce qu'il constitue une substitution à une tâche relativement primordiale que son serveur doit accomplir.
Mais aussi car la dite tâche n'est pas très gourmande en ressources (et est ponctuelle, pas continue).
De plus, un service gratuit ne te fait aucune garantie, ni de fonctionnement/disponibilité, ni de vitesse, ni de qualité, ni de sécurité, ni d'exactitude. Si la plate-forme de SaaS le souhaite, elle peut fausser volontairement le contenu, ou mettre un watermark. Qui plus est généralement les APIs gratuites sont soumises à des limites de requêtes dans le temps, ce qui n'est pas souhaitable même si son site n'est pas visité.
Je trouve donc que la dépendance à un service tiers de traitement est inutile, d'autant plus qu'il existe déjà des libs permettant de faire du rendu de page, dont une partie est libre.
Mais aussi car la dite tâche n'est pas très gourmande en ressources (et est ponctuelle, pas continue).
De plus, un service gratuit ne te fait aucune garantie, ni de fonctionnement/disponibilité, ni de vitesse, ni de qualité, ni de sécurité, ni d'exactitude. Si la plate-forme de SaaS le souhaite, elle peut fausser volontairement le contenu, ou mettre un watermark. Qui plus est généralement les APIs gratuites sont soumises à des limites de requêtes dans le temps, ce qui n'est pas souhaitable même si son site n'est pas visité.
Je trouve donc que la dépendance à un service tiers de traitement est inutile, d'autant plus qu'il existe déjà des libs permettant de faire du rendu de page, dont une partie est libre.
Oui un service gratuit ne fait aucune garantie, c'est le propre généralement d'un service gratuit, il n'y a aucune SLA, si tu en veux, il faut payer.
Après tous les services gratuits ne sont pas mauvais, il faut savoir choisir, github est un excellent service par exemple, avec un haut taux de disponibilité. Dans leur cas ne pas avoir une garantie de leur service gratuit (même si elle est implicite) serait une chose qui serait fatal à leur business payant et ce ne sont pas les seuls.
Pour le sass en général, tout dépend des problématiques qu'on doit traiter la réponse n'est pas unilatérale. Si je veux faire tourner un service de mail pour mon entreprise, je ne vais pas m'amuser à monter des serveurs mails, à les sécuriser (mal) et à m'occuper de la maintenance. Mieux vaut faire appel à des professionnels en utilisant gmail par exemple.
Là pour le problème de la personne, je suggère un service gratuit dans un souci de simplicité, je me suis dis implicitement (peut-être à tort) que c'était pour un petit site pour un besoin très ponctuel.
Après tous les services gratuits ne sont pas mauvais, il faut savoir choisir, github est un excellent service par exemple, avec un haut taux de disponibilité. Dans leur cas ne pas avoir une garantie de leur service gratuit (même si elle est implicite) serait une chose qui serait fatal à leur business payant et ce ne sont pas les seuls.
Pour le sass en général, tout dépend des problématiques qu'on doit traiter la réponse n'est pas unilatérale. Si je veux faire tourner un service de mail pour mon entreprise, je ne vais pas m'amuser à monter des serveurs mails, à les sécuriser (mal) et à m'occuper de la maintenance. Mieux vaut faire appel à des professionnels en utilisant gmail par exemple.
Là pour le problème de la personne, je suggère un service gratuit dans un souci de simplicité, je me suis dis implicitement (peut-être à tort) que c'était pour un petit site pour un besoin très ponctuel.
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question
Si tu veux éviter d'utiliser un service externe ou une bibliothèque graphique pour générer une image, il y a aussi le format SVG (Scalable Vector Graphic), un format vectoriel, en mode texte, ensuite à toi de voir ce que tu préfères.
Oui le but étant:
1- Remplir un formulaire php (ça c'est ok)
2- Receptionner ce formulaire sur une page "reception.php" (ça c'est ok aussi)
Mon soucis est que je souhaite faire un simple "enregistrer l'image sous..."
de cette page "reception.php" pour pouvoir l'afficher sur un forum.
Dans le cas où ce ne serais pas possible effectivement je me tournerai peu être vers un service gratuit.
J'espère cependant trouver une solution a mon problème.
Sachant que c'est un tableau, n'est il pas possible de mettre juste cet élément au format PNG ou JPEG?
1- Remplir un formulaire php (ça c'est ok)
2- Receptionner ce formulaire sur une page "reception.php" (ça c'est ok aussi)
Mon soucis est que je souhaite faire un simple "enregistrer l'image sous..."
de cette page "reception.php" pour pouvoir l'afficher sur un forum.
Dans le cas où ce ne serais pas possible effectivement je me tournerai peu être vers un service gratuit.
J'espère cependant trouver une solution a mon problème.
Sachant que c'est un tableau, n'est il pas possible de mettre juste cet élément au format PNG ou JPEG?