home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Join TechIMO for Free!
Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
Reply Get bargains at  »  Dealighted.com
 
Thread Tools
Currently Active Users: 1679
Discussions: 188,402, Posts: 2,243,609, Members: 232,632
Old September 7th, 2005, 01:13 PM   Digg it!   #1 (permalink)
SoMuchAnime-SoLittleTime
 
EXreaction's Avatar
 
Join Date: Aug 2003
Location: Plymouth, WI
Posts: 13,871
Blog Entries: 1
Send a message via ICQ to EXreaction Send a message via AIM to EXreaction Send a message via MSN to EXreaction Send a message via Yahoo to EXreaction
On site up/downloader

On the website I made, I wanted to have a section that had a place to upload, and download stuff...mostly for school, what could I use to make that? I tried some php thing, but every time I try it, it says that the file can't be written on the server...I am probably not typing something in right... I attached what I am trying to use...

Anyone know of any other progs I can use, or help me with that one I attached?
__________________
My photography: Flickr

Lithium Studios - phpBB3, PHP, and Web Development

EXreaction is offline   Reply With Quote
Old September 7th, 2005, 01:14 PM     #2 (permalink)
Moderator
 
phenious's Avatar
 
Join Date: Oct 2001
Location: Winter Park FL
Posts: 5,278
Send a message via AIM to phenious
Couldnt you just use FTP to upload and download?

phenious is offline   Reply With Quote
Old September 7th, 2005, 01:44 PM     #3 (permalink)
Member
 
Carl-cox-'s Avatar
 
Join Date: Nov 2002
Location: Kent England
Posts: 395
99% of files not being able to be uploaded are due to the folder permissions. try changing teh folder chmod to 777.

Carl-cox- is offline   Reply With Quote
Old September 7th, 2005, 07:42 PM     #4 (permalink)
Senior Member
 
Join Date: May 2003
Location: Aus, Gold Coast :)
Posts: 795
Send a message via ICQ to exally
yeah what carl said... i had the same problem abouit 2 months ago
exally is offline   Reply With Quote
Old September 7th, 2005, 08:54 PM     #5 (permalink)
SoMuchAnime-SoLittleTime
 
EXreaction's Avatar
 
Join Date: Aug 2003
Location: Plymouth, WI
Posts: 13,871
Blog Entries: 1
Send a message via ICQ to EXreaction Send a message via AIM to EXreaction Send a message via MSN to EXreaction Send a message via Yahoo to EXreaction
Sorry it took so long for me to reply...I was in the middle of typing one a few hours ago, then the power flickered, and my comp restarted. I thought it was best to wait out the storm, and not be on my pc.

Anyways...I can upload the program to the site without any problems...the problem is that the program itself, once uploaded, can't do it...I'll try that chmod again...I am pretty sure it is at 777 now...
EXreaction is offline   Reply With Quote
Old September 8th, 2005, 06:37 PM     #6 (permalink)
Member
 
Carl-cox-'s Avatar
 
Join Date: Nov 2002
Location: Kent England
Posts: 395
ok
just to test it out run this php script
PHP Code:
<?
if (isset($HTTP_POST_VARS['Submit'])){
    
copy ($_FILES['imagefile']['tmp_name'], $_FILES['imagefile']['name']) or die ("Could not copy"); 
    echo 
"Name: <a href=\"".$_FILES['imagefile']['name']."\" target=\"_blank\">".$_FILES['imagefile']['name']."</a><br>";
    echo 
"Size: ".$_FILES['imagefile']['size']."<br>";
    echo 
"Type: ".$_FILES['imagefile']['type']."<br>";
    echo 
"Copy Done...."
}else{
echo 
'<form name="form1" method="post" action="" enctype="multipart/form-data">
        <input type="file" name="imagefile">
        <br>
        <input type="submit" name="Submit" value="Submit"> </form>'
;
}
?>
its very very simple and has many faults with it, but it will tell you if you can upload to the folder
Carl-cox- is offline   Reply With Quote
Old September 8th, 2005, 06:40 PM     #7 (permalink)
SoMuchAnime-SoLittleTime
 
EXreaction's Avatar
 
Join Date: Aug 2003
Location: Plymouth, WI
Posts: 13,871
Blog Entries: 1
Send a message via ICQ to EXreaction Send a message via AIM to EXreaction Send a message via MSN to EXreaction Send a message via Yahoo to EXreaction
Run it? You mean like put it in notepad, and save as a .php, upload it to the site right, and open it right?
EXreaction is offline   Reply With Quote
Old September 8th, 2005, 06:42 PM     #8 (permalink)
Member
 
Carl-cox-'s Avatar
 
Join Date: Nov 2002
Location: Kent England
Posts: 395
yep it will open just a form
Carl-cox- is offline   Reply With Quote
Old September 9th, 2005, 01:57 PM     #9 (permalink)
SoMuchAnime-SoLittleTime
 
EXreaction's Avatar
 
Join Date: Aug 2003
Location: Plymouth, WI
Posts: 13,871
Blog Entries: 1
Send a message via ICQ to EXreaction Send a message via AIM to EXreaction Send a message via MSN to EXreaction Send a message via Yahoo to EXreaction
Ya, that worked perfect! Just like I wanted it to!

Will that work right for everything now? Can I just leave it on there, and use it, or will it give me errors for some stuff?
EXreaction is offline   Reply With Quote
Old September 9th, 2005, 02:19 PM     #10 (permalink)
Member
 
Carl-cox-'s Avatar
 
Join Date: Nov 2002
Location: Kent England
Posts: 395
it will work but any one can upload any file that is any size. you just need to limit the script a little take alook at http://www.phpfreaks.com/tutorials/36/0.php , that wahat i used i just tweeked it a bit. read the replys underneath, they will show you some ideas
Carl-cox- is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Downloader-GS? Adamdc Technical Support 7 May 11th, 2005 03:12 AM
Virus: Trojan Horse Downloader Agent esurinak Technical Support 6 November 28th, 2004 09:54 PM
Downloader.dyfica.aj and clumbs of my greying hair. viking12344 General Tech Discussion 7 April 17th, 2004 05:06 PM
Virus Problem: Downloader.Trojan Arcuivie Technical Support 1 October 29th, 2003 06:33 PM
Judge rules Verizon must give RIAA the name of mega-music downloader. ablang IMO Community 188 September 16th, 2003 01:57 PM

Most Active Discussions
Is It Just Me? (2906)
3-days in and no threads about Gaza (161)
Misery Loves Company... (2144)
New Build ( Finally ) (7)
CPU wont boot (7)
Building a gaming computer advice (5)
I think I just killed my computer w.. (24)
RCA 52Inch HDTV wont turn on (5)
Folderchat Weekday thread (444)
Recent Discussions
Futronix has water features? (0)
Laptop proccesor to desktop mob.. (2)
Please help! multiple problems! (4)
RCA 52Inch HDTV wont turn on (5)
New Build ( Finally ) (7)
Common Spyware Solutions (97)
How do you move a hard-drive to.. (4)
What is the best external enclo.. (0)
Partition Magic 7.0 (Unallocate.. (17)
Blackberry Storm, Gears of War .. (1)
Core 2 Quad Q9550 system (3)
COWBOOM Ripoff! Used Laptop w/$.. (4)


All times are GMT -4. The time now is 04:34 AM.
TechIMO Copyright 2008 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28