Upload Script Fehler?

Nabend zusammen :wink: 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… :susp:

Kann es sein, dass ich dein Script auf register_globals verlässt?

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.

:unamused:

Poste doch bitte mal den Quelltext des Scriptes…

Gute Idee ! So hier einmal upload.php3

[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 // // // /////////////////////////////////////////////////////////////////////////// require("setup.php3"); echo $body; if($doupload) { if($ADMIN[RequirePass] == "Yes") { if($password != "$ADMIN[Password]") { echo("

Fehler

Falsches Password

 

 

Uploader Version 1.0
Copyright &COPY; 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("

Status

$error

 

 

Uploader Version 1.0
Copyright &COPY; 2000-2001 PHPScriptCENTER.com
"); exit(); } else { $num = 0; while($num < $ADMIN[UploadNum]) { $num++; $html .= "

File $num: "; } if($ADMIN[RequirePass] == "Yes") { $passhtml = "

Password:
"; } echo("

Upload

$html
Wähle Dateien
$passhtml

 

 

Uploader Version 1.0
Copyright &COPY; 2000-2001 PHPScriptCENTER.com
"); exit(); } php?>[/code]

und hier setup.php3

[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. //
// //
// © Copyright 2001 PHP Script CENTER //
// //
// For more info on Uploader, //
// see http://www.phpscriptcenter.com/uploader.php3 //
// //
///////////////////////////////////////////////////////////////////////////

$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]

Dieses Script verlässt sich auf register_globals

So müsst es gehen:

[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 &COPY; 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("

Status

$error

 

 

Uploader Version 1.0
Copyright &COPY; 2000-2001 PHPScriptCENTER.com
"); exit(); } else { $num = 0; while($num < $ADMIN[UploadNum]) { $num++; $html .= "

File $num: "; } if($ADMIN[RequirePass] == "Yes") { $passhtml = "

Password:
"; } echo("

Upload

$html
Wähle Dateien
$passhtml

 

 

Uploader Version 1.0
Copyright &COPY; 2000-2001 PHPScriptCENTER.com
"); exit(); } php?>[/code]

hmm. Danke für die Verbesserung scheint aber immer noch nicht zu funktionieren … was könnte den noch falsch sein ? :astonished:
bzw. kannst du mir einen funktionieren uploadscript empfelen. ?
Hier kannste nochmal probieren was zum hochladen : http://design.bplaced.net/uploader.php3

Sry,
Das script ist uralt…

Kannst du dir nicht ein anderes suchen?

es gibt genug bessere und vor allem kürzere xD
ein Beispiel: php.about.com/od/advancedphp/ss/ … load_2.htm
Ansonsten noch auf de2.php.net/manual/de/features.file-upload.php womit ich sehr zufrieden bin :smiley:

Ich hab auch einen Upload-Skript geschrieben:
michi7x7.de/script.php?open_folder=Klassen
Du musst dich anmelden, um die Datei herunterzuladen…