Nabend zusammen bin relativ neu hier und hab da eine frage,
ich habe einen Upload Script auf dem Server geladen damit leute ihre bilder ect. Hochladen können, dies scheint aber nicht ganz zu klappen (war früher bei funpic).
Beim Hochladen einer Datei passiert nämlich garnichts, eine kurze Aktualiesierung und das wars… Hier der Link zum Uploaden design.bplaced.net/uploader.php3
Habe natürlich die Ordner Rechte vergeben!
PS: Habe ein dutzend Scirpt versucht immer das Gleiche Problem…
hmm weiß nicht ich kann dir nur sagen das es zu diesem Upload script auch noch ne Config.php3 datei gibt. Die aufgabe besteht lediglich dateien ins Verzeichnis “upload” zu laden.
<?php
///////////////////////////////////////////////
// //
// Uploader v.1 //
// ----------------------------------------- //
// by Graeme (webmaster@phpscriptcenter.com) //
// http://www.phpscriptcenter.com //
// //////////////////////////////
// PHP Script CENTER offers no warranties on this script. //
// The owner/licensee of the script is solely responsible for any //
// problems caused by installation of the script or use of the script //
// //
// All copyright notices regarding Uploader, must remain //
// intact on the scripts and in the HTML for the scripts. //
// //
// (c) Copyright 2001 PHP Script CENTER //
// //
// For more info on Uploader, //
// see http://www.phpscriptcenter.com/uploader.php3 //
// //
///////////////////////////////////////////////////////////////////////////
require("setup.php3");
echo $body;
if($doupload) {
if($ADMIN[RequirePass] == "Yes") {
if($password != "$ADMIN[Password]") {
echo("
Fehler
Falsches Password
Uploader Version 1.0
Copyright © 2000-2001 PHPScriptCENTER.com
");
exit();
}
}
$num = 0;
while($num < $ADMIN[UploadNum]) {
$num++;
$picture = "fileup$num"."_name";
$picture1 = $$picture;
$picture2 = "fileup$num";
$picture3 = $$picture2;
if($picture3 != "none") {
$filesizebtyes = filesize($picture3);
$ok = 1;
if($filesizebtyes < 10) {
$error .= "Datei Nr.$num ist kleiner als 10 kb. ";
$ok = 2;
}
if(file_exists("$ADMIN[directory]/$picture1") OR $ok == 2) {
$error .="Die Datei Nr.$num existiert bereits auf dem Server. ";
} else {
copy ($picture3, "$ADMIN[directory]/$picture1");
$error .="Datei Nr.$num wurde hochgeladen. ";
}
}
}
if(!$error) {
$error .= "Es wurde keine Datei ausgewählt.";
}
echo("
$ADMIN[RequirePass] = “No”; # Soll eine Passwortabfrage benutzt werden?
$ADMIN[Password] = “passwort”; # Hier das Passwort eintragen
$ADMIN[UploadNum] = “3”; # Nummer der Upload-Felder
$ADMIN[directory] = “upload”; # Das Verzeichniss in dem die Datei hochgeladen werden sollen
$bgcolor="#999999"; # Farbe: Hintergrund der Tabelle 1
$bgcolor2="#333333"; # Farbe: Hintergrund der Tabelle 2
$fcolor="#ffffff"; # Farbe: Farbe des Textes
$tcolor=“555555”; # Farbe: Hintergrund der Tabelle 3
$body=""; # Farben in der Bodyzeile
php?>[/code]
<?php
///////////////////////////////////////////////
// //
// Uploader v.1 //
// ----------------------------------------- //
// by Graeme (webmaster@phpscriptcenter.com) //
// http://www.phpscriptcenter.com //
// //////////////////////////////
// PHP Script CENTER offers no warranties on this script. //
// The owner/licensee of the script is solely responsible for any //
// problems caused by installation of the script or use of the script //
// //
// All copyright notices regarding Uploader, must remain //
// intact on the scripts and in the HTML for the scripts. //
// //
// (c) Copyright 2001 PHP Script CENTER //
// //
// For more info on Uploader, //
// see http://www.phpscriptcenter.com/uploader.php3 //
// //
///////////////////////////////////////////////////////////////////////////
///HIER IST DIE VERÄNDERUNG
$fileup1 = $_POST['fileup1'];
$fileup2 = $_POST['fileup2'];
$fileup3 = $_POST['fileup3'];
require("setup.php3");
echo $body;
if($doupload) {
if($ADMIN[RequirePass] == "Yes") {
if($password != "$ADMIN[Password]") {
echo("
Fehler
Falsches Password
Uploader Version 1.0
Copyright © 2000-2001 PHPScriptCENTER.com
");
exit();
}
}
$num = 0;
while($num < $ADMIN[UploadNum]) {
$num++;
$picture = "fileup$num"."_name";
$picture1 = $$picture;
$picture2 = "fileup$num";
$picture3 = $$picture2;
if($picture3 != "none") {
$filesizebtyes = filesize($picture3);
$ok = 1;
if($filesizebtyes < 10) {
$error .= "Datei Nr.$num ist kleiner als 10 kb. ";
$ok = 2;
}
if(file_exists("$ADMIN[directory]/$picture1") OR $ok == 2) {
$error .="Die Datei Nr.$num existiert bereits auf dem Server. ";
} else {
copy ($picture3, "$ADMIN[directory]/$picture1");
$error .="Datei Nr.$num wurde hochgeladen. ";
}
}
}
if(!$error) {
$error .= "Es wurde keine Datei ausgewählt.";
}
echo("
hmm. Danke für die Verbesserung scheint aber immer noch nicht zu funktionieren … was könnte den noch falsch sein ?
bzw. kannst du mir einen funktionieren uploadscript empfelen. ?
Hier kannste nochmal probieren was zum hochladen : http://design.bplaced.net/uploader.php3