Thumbnails and Image Uploads
 
You want to create something where you need thumbnails and image upload, thats the right place to go:
http://phpthumb.sourceforge.net/

Here a code example:
<html>
<head>
  <title>Flashhilfe.de - Bild Upload</title>
</head>

<body>
<?
if($_POST["action"] == "upload") {
  if(eregi(".jpg|.gif|.png$",$bild1_name.$bild2_name)) {
    if($bild1_size != 0 && $bild2_size != 0) {
      copy($bild1,$bild1_name);
      copy($bild2,$bild2_name);
      
      echo "<b>Die Dateien wurden erfolgreich gespeichert.</b><br><br>";
      echo "Größe: ".$bild1_size." Byte<br>";
      echo "Name: ".$bild1_name."<br>";
      echo "MIME-Type: ".$bild1_type."<br>";
      echo "<br>";
      echo '<img src="'.$bild1_name.'" border="0">'; 
      echo "<br><br>";
      echo "Größe: ".$bild2_size." Byte<br>";
      echo "Name: ".$bild2_name."<br>";
      echo "MIME-Type: ".$bild2_type."<br>";
      echo "<br>";
      echo '<img src="'.$bild2_name.'" border="0">'; 
    } else {
      echo "Ihre Datei ist gleich 0"; 
    }
  } else {
    echo "Falsche Erweiterung: ".$bild1_name;
  }
} else {
?>
  <table border="0" cellpadding="0" cellspacing="0">
  <form action="<? echo $_SERVER["PHP_SELF"]; ?>" enctype="multipart/form-data" method="POST">
  <input type="hidden" name="action" value="upload">
  <tr>
    <td>Bild 1</td>
    <td><input type="file" name="bild1"></td>
  </tr>
  <tr>
    <td>Bild 2</td>
    <td><input type="file" name="bild2"></td>
  </tr>
  <tr>
    <td> </td>
    <td><input type="submit" value="Upload"></td>
  </tr>
  </form>
  </table>
<?
}
?>
</body>
</html>
 
admin / Dec 01, 2004
   
 
 
Login: 
Pass: 
 
 
     
     
2004 - 2019 / lookass.ch
makememad@lookass.ch