Question sur le PHP
Je voulais voir si dans le code suivant, il etait possible des fichier jog au lieu de gif, si oui comment faire car j'ai change tous les gif en jpg mais ce fonctionne pas.
<?php
header("Content-type: image/gif");
$string= "easyphp & gd";
$im = imagecreate($x,$y);
$im = imagecreatefromgif("bouton.gif");
$orange = imagecolorallocate($im, 0, 0, 0);
$px = (imagesx($im)-7.5*strlen($string))/2;
imagestring($im,3,$px,2,$string,$orange);
imagegif($im);
imagedestroy($im);
?>
Beep
Sibius
<?php
header("Content-type: image/gif");
$string= "easyphp & gd";
$im = imagecreate($x,$y);
$im = imagecreatefromgif("bouton.gif");
$orange = imagecolorallocate($im, 0, 0, 0);
$px = (imagesx($im)-7.5*strlen($string))/2;
imagestring($im,3,$px,2,$string,$orange);
imagegif($im);
imagedestroy($im);
?>
Beep
Sibius
A voir également:
- Question sur le PHP
- Easy php - Télécharger - Divers Web & Internet
- Expert php pinterest - Télécharger - Langages
- Retour a la ligne php - Forum Webmastering
- Alert php - Forum PHP
- Retour a la ligne php ✓ - Forum PHP