von disasterdesmaster » So 06 Apr, 2003 13:36
Hi Franz,
natürlich ist es möglich Dateien über Php hochzuladen
Script:
[php]
<head><title>Upload</title></head>
<body text="#000000" bgcolor="#FFFFFF">
<?
$path="Pfad wo Dateien hingeladen werden sollen";
if(!empty($file1_name)){
if(@copy($file1,"$path/$file1_name")){
echo "<b>$file1_name hochgeladen</b><br>";
}
}
if(!empty($file2_name)){
if(@copy($file2,"$path/$file2_name")){
echo "<b>$file2_name hochgeladen</b><br>";
}
}
if(!empty($file3_name)){
if(@copy($file3,"$path/$file3_name")){
echo "<b>$file3_name hochgeladen</b><br>";
}
}
if(!empty($file4_name)){
if(@copy($file4,"$path/$file4_name")){
echo "<b>$file4_name hochgeladen</b><br>";
}
}
if(!empty($file5_name)){
if(@copy($file5,"$path/$file5_name")){
echo "<b>$file5_name hochgeladen</b><br>";
}
?>
<center>
<table>
<tr>
<td width="50%"><form method="POST" enctype="multipart/form-data">
<input type="file" name="file1" size="20"><br>
<input type="file" name="file2" size="20"><br>
<input type="file" name="file3" size="20"><br>
<input type="file" name="file4" size="20"><br>
<input type="file" name="file5" size="20"><br>
<input type="submit" value="Upload" name="upload">
</td></tr>
</table>
</center></div>
</form>
</body>
[/php]