46356
Dec 16, 2007, updated at 19:29:40 (UTC)
4390
2
0
Bild mit PHP erzeugen
Hallo
Ich habe hier einen PHP Script, der meine Website vor Bots etc. schützen sollte...
Leider kann die Datei (also das erzeugte Bild) nur angezeigt werden... ich würde diese aber gerne Speichern...
Wie ist das möglich?
Lg. Alex
Ich habe hier einen PHP Script, der meine Website vor Bots etc. schützen sollte...
<?php
header("Content-type: image/png");
$email = "Meine-email Adresse @ bla . com";
$length = (strlen($email)*8);
$im = @ImageCreate ($length, 20)
or die ("Es konnte kein Bild erzeugt werden...");
$background_color = ImageColorAllocate ($im, 255, 255, 255); // White: 255,255,255
$text_color = ImageColorAllocate ($im, 55, 103, 122);
imagestring($im, 3,5,2,$email, $text_color);
imagepng ($im);
?>
Leider kann die Datei (also das erzeugte Bild) nur angezeigt werden... ich würde diese aber gerne Speichern...
Wie ist das möglich?
Lg. Alex
Please also mark the comments that contributed to the solution of the article
Content-Key: 76106
Url: https://administrator.de/contentid/76106
Printed on: April 23, 2024 at 14:04 o'clock
2 Comments
Latest comment