Ergebnis 1 bis 8 von 8

Hybrid-Darstellung

  1. #1

    Standard

    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>
    _n0p3_

  2. #2
    NoClose Wurm
    Registriert seit
    27.06.2009
    Beiträge
    186

    Standard

    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?
    MfG PC17

Stichworte

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein
  •