WCM - Das österreichische Computer Magazin Forenübersicht
 

Zurück   WCM Forum > Rat & Tat > Programmierung

Programmierung Rat & Tat für Programmierer

Microsoft KARRIERECAMPUS

Antwort
 
Themen-Optionen Ansicht
Alt 06.02.2004, 20:05   #1
Pulse-Seeker
Inventar
 
Registriert seit: 17.11.2002
Alter: 46
Beiträge: 2.027

Mein Computer

Pulse-Seeker eine Nachricht über ICQ schicken
Standard [PHP] suche upload-tool für php

ich suche ein upload-tool mit dem man bilder in einen bestimmten ordner uploaden kann.
hab schon "gegoogelt" und auch einige gefunden aber keins wirklich zum laufen gebracht!

hat jemand so ein teil? soll nix besonderes können, nur eine oder mehrere dateien in einen order hochladen. und soll SEHR leicht zum einrichten sein.

schon mal danke im voraus.
____________________________________
Amiga is back!!!
amigaemuboard.net - Amiga still alive !!!
Pulse-Seeker ist offline   Mit Zitat antworten
Alt 06.02.2004, 20:36   #2
sagi
Elite
 
Registriert seit: 08.11.2001
Alter: 42
Beiträge: 1.285


Standard

suchst du eine Gallery?
____________________________________
www.sagmueller.net

Freedom - use it or lose it (Lawrence Lessig)

Im übrigen bin ich der Meinung, dass Microsoft zerschlagen werden muss.
sagi ist offline   Mit Zitat antworten
Alt 06.02.2004, 20:40   #3
Pulse-Seeker
Inventar
 
Registriert seit: 17.11.2002
Alter: 46
Beiträge: 2.027

Mein Computer

Pulse-Seeker eine Nachricht über ICQ schicken
Standard

nein. die bilder sollen nur in einen ordner geschaufelt werden.
____________________________________
Amiga is back!!!
amigaemuboard.net - Amiga still alive !!!
Pulse-Seeker ist offline   Mit Zitat antworten
Alt 06.02.2004, 21:54   #4
Noerf
Master
 
Registriert seit: 23.11.2000
Alter: 43
Beiträge: 529


Noerf eine Nachricht über ICQ schicken
Standard

http://www.dreamcodes.com/

und geh da dann auf downloads->upload scripte
____________________________________
The knack of flying is learning how to throw yourself at the ground and miss.

Es heißt Fluglotse, ein z kommt in diesem Wort nicht vor.
Noerf ist offline   Mit Zitat antworten
Alt 06.02.2004, 22:26   #5
Philipp
verXENt
 
Benutzerbild von Philipp
 
Registriert seit: 01.08.1999
Beiträge: 7.084

Mein Computer

Standard

Einen kompletten PHP File Manager inkl. Upload gibt es hier:
http://www.invisionfilemanager.com/
Philipp ist offline   Mit Zitat antworten
Alt 08.02.2004, 10:09   #6
Pulse-Seeker
Inventar
 
Registriert seit: 17.11.2002
Alter: 46
Beiträge: 2.027

Mein Computer

Pulse-Seeker eine Nachricht über ICQ schicken
Standard

ich hab jetzt einen uploader gefunden der mir gefallen würde.
das problem ist wenn ich ein file auswähle und auf uploadne klicke bekomme ich die meldung "no file selected for upload". das gleiche problem hab ich bei anderen uploader auch schon gehabt!!! irgendein tipp was ich falsch mache???

es is net wirklich viel zum einstellen. keine ahnung was ich falsch mache. mein webspace ist bei inode.

-> hier der link zum testen <-

hier der code des upload-scripts:

<?

// Original script developed by the Zach White Network.
// Modifications for flexible multi-uploads developed by
// Greg Johnson
// gjohnson@7south.com
// 7 South Communications, Inc.
// www.7south.com
// Mod Date: 11-07-02


//user defined variables
$abpath = "/home/mein-account/www/home/joebstl/images/images_angebote"; //Absolute path to where images are uploaded. No trailing slash
$sizelim = "no"; //Do you want size limit, yes or no
$size = "2500000"; //What do you want size limited to be if there is one
$number_of_uploads = 5; //Number of uploads to occur

if ($_REQUEST['submitted']){ // Begin processing portion of script

//all image types to upload
$cert1 = "image/pjpeg"; //Jpeg type 1
$cert2 = "image/jpeg"; //Jpeg type 2
$cert3 = "image/gif"; //Gif type
$cert4 = "image/ief"; //Ief type
$cert5 = "image/png"; //Png type
$cert6 = "image/tiff"; //Tiff type
$cert7 = "image/bmp"; //Bmp Type
$cert8 = "image/vnd.wap.wbmp"; //Wbmp type
$cert9 = "image/x-cmu-raster"; //Ras type
$cert10 = "image/x-x-portable-anymap"; //Pnm type
$cert11 = "image/x-portable-bitmap"; //Pbm type
$cert12 = "image/x-portable-graymap"; //Pgm type
$cert13 = "image/x-portable-pixmap"; //Ppm type
$cert14 = "image/x-rgb"; //Rgb type
$cert15 = "image/x-xbitmap"; //Xbm type
$cert16 = "image/x-xpixmap"; //Xpm type
$cert17 = "image/x-xwindowdump"; //Xwd type

$log = "";

for ($i=0; $i<$number_of_uploads; $i++) {

//checks if file exists
if ($img_name[$i] == "") {
$log .= "No file selected for upload $i
";
}

if ($img_name[$i] != "") {
//checks if file exists
if (file_exists("$abpath/$img_name[$i]")) {
$log .= "File $i already existed
";
} else {

//checks if files to big
if (($sizelim == "yes") && ($img_size[$i] > $size)) {
$log .= "File $i was too big
";
} else {


//Checks if file is an image
if (($img_type[$i] == $cert1) or ($img_type[$i] == $cert2) or ($img_type[$i] == $cert3) or ($img_type[$i] == $cert4) or ($img_type[$i] == $cert5) or ($img_type[$i] == $cert6) or ($img_type[$i] == $cert7) or ($img_type[$i] == $cert8) or ($img_type[$i] == $cert9) or ($img_type[$i] == $cert10) or ($img_type[$i] == $cert11) or ($img_type[$i] == $cert12) or ($img_type[$i] == $cert13) or ($img_type[$i] == $cert14) or ($img_type[$i] == $cert15) or ($img_type[$i] == $cert16) or ($img_type[$i] == $cert17)) {
@copy($img[$i], "$abpath/$img_name[$i]") or $log .= "Couldn't copy image 1 to server
";
if (file_exists("$abpath/$img_name[$i]")) {
$log .= "File $i was uploaded
";
}
} else {
$log .= "File $i is not an image
";
}
}
}
}


}

?>

<html>
<head>
<title>Image Report</title>
</head>
<body>


Log:

<?

echo "$log";

?>
</p>
<body>
</html>
<?
exit;
} // End processing portion of script
?>

<html>
<head>
<title>Upload Image</title>
</head>
<body>
<form method=POST action=uploadmulti.php enctype=multipart/form-data>


Files to upload:

<?

for ($j=0; $j<$number_of_uploads; $j++) {
?>
<input type=file name=img[] size=30>

<?
}
?>
<input type="hidden" name="submitted" value="true">
<input type="submit" name="submit" value="Upload">
</form>
</body>
</html>
____________________________________
Amiga is back!!!
amigaemuboard.net - Amiga still alive !!!
Pulse-Seeker ist offline   Mit Zitat antworten
Alt 08.02.2004, 11:34   #7
wbendl
Master
 
Registriert seit: 22.03.2000
Alter: 66
Beiträge: 550


Standard

Hi!

Nur so ein Verdacht, wo das Problem sein könnte:

Das Script ist vielleicht für register_globals=on geschrieben, und dein Provider hat register_globals=off.

Bei http://www.dreamcodes.com/ findet du einen Tip, wie man das umgehen könnte. Oder du änderst den Code, der die Parameter übergibt.


mfg

WB
wbendl ist offline   Mit Zitat antworten
Antwort


Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)
 

Forumregeln
Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.

Gehe zu


Alle Zeitangaben in WEZ +2. Es ist jetzt 21:15 Uhr.


Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Forum SEO by Zoints
© 2009 FSL Verlag