Cosa intendi con "richiama l'url con un download manager e poi apri il file salvato utilizzando il blocco note"?
L'url è
http://www.livellozero.it/dati/100/diploma.php
il codice attuale è
Codice PHP:
<?php
error_reporting(E_ALL);
ini_set('display_errors', 1);
header ("Content-type: image/gif");
$name = "name";
$date = date("d.m.Y H.i");
$date2 = date("d_m_Y");
$pos = "1";
$font_size = 5;
$strlen = strlen($name)*imagefontwidth($font_size);
$image = imagecreatefromjpeg("diploma.jpg");
$img_w = (imagesx($image)-90);
$str_x = ($img_w/2) - ($strlen/2);
$black = imagecolorallocate($image, 0,0,0);
imagestring($image, $font_size, $str_x, 90, $name, $black);
imagestring($image, 3, 170, 174, $date, $black);
imagestring($image, 3, 103, 174, $pos, $black);
$newfile = "../public/archivio/".$name."_".$pos."_".$date2.".gif";
if (!file_exists($newfile)) {
imagegif($image, $newfile);
}
imagegif($image);
imagedestroy($image);
?>
grazie