Ja hochladen kann ich die datei!
Aber das Bild/Ip wird mir nicht angezeigt!
Wie kann ich diesen code hochladen das er angezeigt wird?
Unter was soll ich es speichern? PHP,txt...

<?php
$textureSize=256;

//create our image ressource
$img = imagecreatetruecolor($textureSize,$textureSize/2);

//fill the image with some colors
for ($y=0;$y<$textureSize/2;$y++) {
for ($x=0;$x<$textureSize;$x++) {
//set color at the pixel x/y
imagesetpixel($img, $x,$y, ($x) + ($y<<8) + ($x<<16) );
}
}

//print to browser
header("Content-type: image/jpeg");
imagepng($img);
imagedestroy($img); // Return the resource image alone
?>