Einzelnen Beitrag anzeigen

EDatabaseError

Registriert seit: 11. Mai 2005
Ort: Göppingen
1.238 Beiträge
 
Delphi 2007 Professional
 
#11

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

  Alt 8. Okt 2006, 09:52
Zitat von klaus.meyer:
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.
Bug gefixt

Mfg
tobi
Tobias
It's not a bug, it's a feature.
  Mit Zitat antworten Zitat