Einzelnen Beitrag anzeigen

Benutzerbild von klaus.meyer
klaus.meyer

Registriert seit: 19. Jun 2004
146 Beiträge
 
Delphi 7 Personal
 
#9

Re: PHPimg - Ein Prog. um PHP bspw. für Captchas zu erzeugen

  Alt 8. Okt 2006, 09:49
Da hat sich wohl ein kleiner Fehler im PHP-Code eingeschlichen

Code:
<?php
 // Created with PHPimg //
 // (C) Tobias Hocke //
 // [url]http://www.tobias-hocke.de[/url] //

 $breite = 100;
 $hoehe = 100;
 $img = imagecreate($breite,$hoehe);

 $clWhite = imagecolorallocate($img,255,255,255);

 $clBlack = imagecolorallocate($img,0,0,0);

 $x1 = 2 // Semikolon fehlt
 $y1 = 5 // Semikolon fehlt
 $x2 = 1 // Semikolon fehlt
 $y2 = 3 // Semikolon fehlt

 imageline($img, $x1, $y1, $x2, $y2, $clBlack);

 header("Content-type: image/png");
 imagepng($img,"image.png");
 imagedestroy($img);
?>
Die Strichpunkte nach den Variablendeklarationen fehlen.
Aber sonst eine wirklich nette Idee.
  Mit Zitat antworten Zitat