Zitat Zitat von fred777 Beitrag anzeigen
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>
Ich habe den code in eine txt datei kopiert und sie nachher auf .php geändert!
Habe mich bei filezilla angemeldet und links die datei gesucht doppelklick dann ist wurde sie hochgeladen und wenn ich dann auf die FTP seite gehe und es öffne zeigt sie mir nichts an!
Was habe ich da falsch gemacht?