cgi skript / upload

Post Reply
Message
Author
kiko
Posts: 53
Joined: 13. Apr 2004 10:14

cgi skript / upload

#1 Post by kiko »

Hallo Leute,

ich hoffe dass jemand mir helfen kann.
Apache 1.3 auf Linux SuSE 7..3

Ich verwende ein cgi skript für uploads. In diesem cgi Skript gibt es einen Eintrag:

# absolute path to folder files will be uploaded to.
# WINDOWS users, your path would like something like : images\\uploads
# UNIX users, your path would like something like : /home/www/images/uploads
# do not end the path with any slashes and if you're on a UNIX serv, make sure
# you CHMOD each folder in the path to 777

$dir = "/Pfad/user1";


Jetzt möchte ich bei "Homeverzeichnis" eine Variable setzen, so dass das Skript je nach dem wer gerade uploaded, an das jeweilige Homeverzeichnis die Files abgelegt werden.

Also
user1 startet einen Upload-->Files werden im /home/user1 abgelegt
user44 startet einen Upload-->Files werden im /home/user44 abgelegt.

Nur weiß ich nicht wie ich das anpassen könnte..

Kann mir jemand helfen?
Tnx
Viele Späße
kiko

arachno

#2 Post by arachno »

$dir = "/Pfad/user1";

$dir="/~";

weiß aber auch nicht wie dein skript aussieht. doch ~ bezeichnet das /home

kiko
Posts: 53
Joined: 13. Apr 2004 10:14

#3 Post by kiko »

Gute Idee funktioniert aber nicht.
Ich bekomme die Meldung:

The path you entered is incorrect. You entered : "/~"
Your root path is (UNIX): /usr/local/httpd/wwwsite

Ich möchte aber mein root path nicht ändern. Habe ich da eine andere Möglichkeit?
Viele Späße
kiko

Post Reply