Day of Defeat Plugins Community
This site is an archive — everything is readable and downloadable, nothing can be posted. Admin
Archive › Old Forum Threads › General › Chat › Help with upload script for websites
4 posts, 3 people · 3,023 views Thread Rating: ★★★★★
closedHelp with upload script for websites
Started by Tank on 12-20-2008, 06:10 PM
Tank
started this thread
Posts: 581
Threads: 59
Joined: Jan 2007
12-20-2008, 06:10 PM #1

I'm sorry that I'm posting this question on these forums but I'm kinda stranded on this whole stuff.rnrnI have a rule in my clan that we only ban people permanent if we have the proper proof for it. I can't stand admin abuse (been victim of admin abuse way too much when I just started) and can't stand seeing people getting banned for hacks just because they own my admins.rnrnAt this point they all sent it to my email but my free email space is getting kinda full. So I wanted to implement something on my website, I found this:rnlinkrnrnIt's a small script which basicly does what I want but I can't get it to work.rnrnI placed it in http://social.clanservers.com/uploads/index.php, placed all the files in there. I created a folder called upload_directory and made sure that they all have read/write access but still I get this message:rnrn

Internal Server ErrorrnrnThe server encountered an internal error or misconfiguration and was unable to complete your request.rnrnPlease contact the server administrator, webmaster@social.clanservers.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.rnrnMore information about this error may be available in the server error log.rnrnAdditionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.rnApache/2.0.63 (Unix) mod_ssl/2.0.63 OpenSSL/0.9.7a mod_auth_passthrough/2.1 mod_bwlimited/1.4 Server at social.clanservers.com Port 80rn
rnrnDoes anyone know what I'm doing wrong or perhaps know something else that would work even better?rnrnPs: I just recently started learning some PHP for a project for DoD but even though I think the script should work, it doesn't. However this message I've seen with all download/upload scripts I tried.

Zor
posted here
Posts: 688
Threads: 75
Joined: Jun 2006
12-20-2008, 06:38 PM #2

Edit the index.php look for the following code:rnrn

$upload_dir = "/upload_directory";
rnrnAnd change it to the following:rnrn
$upload_dir = getcwd() . "/upload_directory";
rnrnNext ensure that the upload_directory is in the same directory as your index.phprnrnHope that helps!rnrnCheers!

Tank
started this thread
Posts: 581
Threads: 59
Joined: Jan 2007
12-20-2008, 07:28 PM #3

Thanks for the support Zor, however it seems to be an issues with my webserver. I have a second webserver and on that one it works perfectly.rnrnI'll see what a support ticket will do for me.rnrnAgain, much appriciated :D

diamond-optic
posted here
Posts: 2,068
Threads: 103
Joined: May 2005
12-20-2008, 11:03 PM #4

you probably have the directory chmod 777.... alot of web hosts wont allow that.. mine doesnt, but 755 always works fine for me

Archive › Old Forum Threads › General › Chat › Help with upload script for websites
DoD Plugins Archive · Repository · Old Forum Threads · Maps · Admin · built 14 Sep 2026 00:34 UTC