Naja als PHP Datei halt:
PHP-Code:
<html>
<head>
</head>
<body>
<?php
print "Das ist der große PHP Test, bekommst du das hin?\n\n";
$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    
?>                                                
</body>
</html>