comme convenu, un problème, un sujet.
J'expose donc mon problème, sur un script de petites annonce que je personnaliserai plus tard, je rencontre un sérieux problème.
En effet, lorsque je dépose une annonce, je peux la valider, etc... Par contre l'image ne s'affiche pas...
J'ai besoin de vos lumières, je cherche, cherche, et cherche encore mais j'ai l'impression de tourner en rond.
là où j'en suis : miniature.php
<?php
error_reporting(-1);
$taille = getimagesize($_GET[\'pic\']);
$h_i = $taille[1];
$w_i = $taille[0];
if($h_i >$_GET[\'h_max\'])
{
$convert=$_GET[\'h_max\']/$h_i;
$h_i=$_GET[\'h_max=50\'];
$w_i=ceil($w_i*$convert);
}
if($w_i >$_GET[\'w_max\'])
{
$convert=$_GET[\'w_max\']/$w_i;
$w_i=$_GET[\'w_max=50\'];
$h_i=ceil($h_i*$convert);
} ;
$largeur = "$w_i";
$hauteur ="$h_i";
header("Content-Type: image/jpeg");
list($width, $height, $type, $attr) = getimagesize($_GET[\'pic\']);
if($type == "1")
{
$img_in = imagecreatefromgif($_GET[\'pic\']);
}
if($type == "2")
{
$img_in = imagecreatefromjpeg($_GET[\'pic\']);
}
if($type == "3")
{
$img_in = imagecreatefrompng($_GET[\'pic\']);
}
Je vais regarder pour les erreurs...