I må endelig se min kode, men sløringen må "næsten" være mangel på en tilføjelse mere end det er en fejl.
<?php
session_start();
/*DO NOT REMOVE THIS
Scripter: Theis F. Hinz
Homepage: http://www.shafh.dk
*/
Header("Content-type: image/png");
create_image();
die();
function create_image()
{
require("../config.php");
mysql_connect($mysql_host, $mysql_user, $mysql_pw);
mysql_select_db($mysql_db);
$picWidth=150;
$picHeight=16;
$query = mysql_query("select * from torbenharbo_mail where id = 1");
$row = mysql_fetch_array($query);
$mail = $row['mail'];
$image = ImageCreate($picWidth+1,$picHeight+1);
$bgcolor = ImageColorAllocate($image, 222, 225, 204);
$black = ImageColorAllocate($image, 0, 0, 0);
// *** Make the background color ***
imagefill($image, 0, 0, $bgcolor);
// *** Add the mail ind black ***
imagefttext($image, 10, 0, 0, 12, $black, './verdana.ttf', $mail);
// *** Output the newly created image in jpeg format ***
imagejpeg($image);
// *** Clear up some memory... ***
imagedestroy($image);
}
?>