oder gleich mit webupload und anzeige?
PHP-Code:
<?php
// relativer Pfad zu den bildern
$pfad = "/kunde/homepages/images/";
move_uploaded_file($_FILES['datei']['tmp_name'], $pfad.$_FILES['datei']['name']);
?>
<html>
<head>
<title>upload</title>
<link rel=stylesheet type="text/css" href="css/style.css">
</head>
<body bgcolor="#ffffff" link="#000000" alink="#000000" vlink="#000000">
<table width="100%" height="10%" border="1" cellspacing="4" cellpadding="4" bordercolor="#DFDFDF">
<tr>
<td align="left" valign="top">
<form method="post" enctype="multipart/form-data" action="<?php echo $_SERVER['PHP_SELF']; ?>">
<input type="file" name="datei">
<input type="submit" name="upload" value="Upload">
</form><br>
<?php
$ordner = "images";
$handle = opendir($ordner);
while ($file = readdir ($handle)) {
if($file != "." && $file != "..") {
echo "<img src='".$ordner."/".$file."' border='0'><br>";
}
}
closedir($handle);
?>
</td>
</tr>
</table>
</body>
</html>