Je génère plusieurs code barre à l'aide d'un formulaire, ce code fonctionnait parfaitement chez un héberger gratuit (hostinger) mais suite a un panne j ai tout transferé chez ovh.
Le souci c est que maintenant mon code barre n est pas actualisé, je suis obligé de faire F5. J' ai essayé différent code pour forcer le rafraichissement de la page ou des images mais ca ne marche pas.
voici le code :
<html>
<head>
<title>IMPRESSION</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<META http-equiv="Cache-Control" content="no-cache">
<META http-equiv="Pragma" content="no-cache">
<META http-equiv="Expires" content="0">
<style type="text/css">
body, table
{
text-align: center;
}
</style>
</head>
<?php
$verre1 = $_POST['verre1'];
$verre2 = $_POST['verre2'];
$verre3 = $_POST['verre3'];
$verre4 = $_POST['verre4'];
$verre5 = $_POST['verre5'];
$verre6 = $_POST['verre6'];
?>
<body>
<table width="284" height="380" border="0" align="center" cellpadding ="2" cellspacing ="0">
<tr>
<td colspan=2 width="97" class="set1"></td>
</tr>
<tr>
<td colspan=2>
<?php
include('pi_barcode.php');
$bc = new pi_barcode();
$bc->setCode($verre1);
$bc->setType('C128');
$bc->setSize(30, 250, 30);
$bc->setText('AUTO');
$bc->hideCodeType();
$bc->setColors('#123456', '#F9F9F9');
$bc->setFiletype('PNG');
$bc->writeBarcodeFile('barcode10.png');
echo '<img src="barcode10.png" alt="" />';
?>
</td></tr>
<tr>
<td colspan=2>
<?php
include('pi_barcode.php');
$bc = new pi_barcode();
$bc->setCode($verre2);
$bc->setType('C128');
$bc->setSize(30, 250, 30);
$bc->setText('AUTO');
$bc->hideCodeType();
$bc->setColors('#123456', '#F9F9F9');
$bc->setFiletype('PNG');
$bc->writeBarcodeFile('barcode11.png');
echo '<img src="barcode11.png" alt="" />';
?>
</td></tr>
<tr>
<td colspan=2>
<?php
include('pi_barcode.php');
$bc = new pi_barcode();
$bc->setCode($verre3);
$bc->setType('C128');
$bc->setSize(30, 250, 30);
$bc->setText('AUTO');
$bc->hideCodeType();
$bc->setColors('#123456', '#F9F9F9');
$bc->setFiletype('PNG');
$bc->writeBarcodeFile('barcode12.png');
echo '<img src="barcode12.png" alt="" />';
?>
</td></tr>
<tr>
<td colspan=2>
<?php
include('pi_barcode.php');
$bc = new pi_barcode();
$bc->setCode($verre4);
$bc->setType('C128');
$bc->setSize(30, 250, 30);
$bc->setText('AUTO');
$bc->hideCodeType();
$bc->setColors('#123456', '#F9F9F9');
$bc->setFiletype('PNG');
$bc->writeBarcodeFile('barcode13.png');
echo '<img src="barcode13.png" alt="" />';
?>
</td></tr>
<tr>
<td colspan=2>
<?php
include('pi_barcode.php');
$bc = new pi_barcode();
$bc->setCode($verre5);
$bc->setType('C128');
$bc->setSize(30, 250, 30);
$bc->setText('AUTO');
$bc->hideCodeType();
$bc->setColors('#123456', '#F9F9F9');
$bc->setFiletype('PNG');
$bc->writeBarcodeFile('barcode14.png');
echo '<img src="barcode14.png" alt="" />';
?>
</td></tr>
<tr>
<td colspan=2>
<?php
include('pi_barcode.php');
$bc = new pi_barcode();
$bc->setCode($verre6);
$bc->setType('C128');
$bc->setSize(30, 250, 30);
$bc->setText('AUTO');
$bc->hideCodeType();
$bc->setColors('#123456', '#F9F9F9');
$bc->setFiletype('PNG');
$bc->writeBarcodeFile('barcode15.png');
echo '<img src="barcode15.png" alt="" />';
?>
</td></tr>
</table>
</body>
<script language="javascript">
<!--
window.print()
//-->
</script>
</html>
Pourquoi ca ne marche plus ? Merci pour votre aide.philippe