Grazie innanzi tutto di avermi dedicato del tuo tempo a rispondermi;
Ho fatto alcune prove ed ho notato che l'errore si presenta unicamente se
inserisco dei tag HTML;
mi spiego meglio:
Se faccio eseguire questo codice in un browser
"
<?php
// Create a blank image and add some text
$im = imagecreatetruecolor(120, 20);
$text_color = imagecolorallocate($im, 233, 14, 91);
imagestring($im, 1, 5, 5, 'A Simple Text String', $text_color);
// Set the content type header - in this case image/jpeg
header('Content-Type: image/jpeg');
// Output the image
imagejpeg($im);
// Free up memory
imagedestroy($im);
?>
"
Tutto funziona regolarmente e l'immagine viene visualizzata, se invece
faccio eseguire quest'altro codice
"
<DOCTYPE HTML>
<head>
<title> TITOLO PAGINA </title>
</head>
<html>
<body>
<?php
// Create a blank image and add some text
$im = imagecreatetruecolor(120, 20);
$text_color = imagecolorallocate($im, 233, 14, 91);
imagestring($im, 1, 5, 5, 'A Simple Text String', $text_color);
// Set the content type header - in this case image/jpeg
header('Content-Type: image/jpeg');
// Output the image
imagejpeg($im);
// Free up memory
imagedestroy($im);
?>
?>
</body>
</html>
"
Mi compare l'errore.
Come mai ?
E' forse un difetto della libreria GD ?
"Leonardo Serni" ha scritto nel messaggio
news:ef5729p874n26nlkc...@L.Serni...