PDA

View Full Version : Need File Uploader BUT...



Recursion
29-06-2006, 07:29 PM
I need a file uploader. The teachers can upload say lesson plans or pictures and stuff and on another page there would be all the uploaded files and a teacher can just click on them and download them. How would i do this? or can someone make me a script please!! (I can only just do the echo thing in PHP rofl!)

I cannot pay but i will +REP, sorry =[

Thanks!!
:.:Numark:.:

MattUH
29-06-2006, 07:31 PM
try techtuts.com ;]

Recursion
29-06-2006, 07:32 PM
yes but that wont add the file list to a page and auto update it with what files there are, will it?

MattUH
29-06-2006, 07:34 PM
maybe... check comments.

nick12
29-06-2006, 07:37 PM
techtuts.com are a bit scrud atm

DaveTaylor
29-06-2006, 07:40 PM
get a free hosting?

MattUH
29-06-2006, 07:40 PM
techtuts.com are a bit scrud atm

I know. :rolleyes:

nick12
29-06-2006, 07:41 PM
get a free hosting?

well i would kinda consider that

nelly
29-06-2006, 07:46 PM
Or me =]
well i would kinda consider that

Recursion
29-06-2006, 07:53 PM
so any help, ill look at techtuts one in a moment when my KVM switch has stopped mucking up

Impossible
29-06-2006, 07:56 PM
PM Me, i can make one, with a link too all uploaded files..

Recursion
29-06-2006, 08:04 PM
the Techtuts one doesn't display the file list, as i am dumb at PHP i cannot adapt it =[

Lukeh
29-06-2006, 08:16 PM
Do you have hosting?

If you do there is a ready made system you can upload by celerondude which will do it all for you..

If not you should try to get some and then use it, if I get my reseller i will give you enough hosting for it.

Recursion
29-06-2006, 08:25 PM
ive got hosting. I need this because i run a Schools website and i am creating a staff area. I am needing this so staff can upload files and then other staff can goto a page called File List and it will display all uploaded files in alphabetical order. But i cannot seam to find this...

Lukeh
29-06-2006, 08:26 PM
http://celerondude.com/script_uploaderv6

Also there is a system called moodle which is basically a school content management system

Google that, or use the cd one

Recursion
29-06-2006, 08:31 PM
i do not like that Celerondude one as it has a full panel. I would like a normal one but with an added page that could grab the file list from a directory and display it on a webpage and make them downloadable.

This could be done using MySQL?? When a file is uploaded information containing: File URL for downloading, file name and upload date. Then a page could grab these from the database?

I cannot do this as my coding ability in PHP and MySQL doesnt reach very far...

Also i am only creating a staff area, we pay a company for the website.

Recursion
30-06-2006, 04:42 PM
sorry to bump, But has anyone got any ideas. It would be like the cpanel upload bit but not for cpanel

Jamie.
30-06-2006, 04:47 PM
get some1 to mkae 1?

alexxxxx
30-06-2006, 04:54 PM
I don't know the code, but can't you like make the PHP add to a MySQL lesson plan details and then on another page you can make the PHP read the database to retrieve the data, and then the teachers click the link and then their plans come up?

Jamie.
30-06-2006, 04:56 PM
I don't know the code, but can't you like make the PHP add to a MySQL lesson plan details and then on another page you can make the PHP read the database to retrieve the data, and then the teachers click the link and then their plans come up?
why not tht gd idea :P

Recursion
30-06-2006, 04:57 PM
because i want them to be able to upload and then other teachers download from another page...

Jamie.
30-06-2006, 04:57 PM
thats wot he means :S

Recursion
30-06-2006, 04:59 PM
i thought he meant they upload them then other teachers goto another page click it and it comes up in the browser ???

Jamie.
30-06-2006, 05:00 PM
thght thts wot u wanted

alexxxxx
30-06-2006, 05:00 PM
why not tht gd idea :P

pardon. I didn't understand that.

Jamie.
30-06-2006, 05:01 PM
pardon. I didn't understand that.
i meant like....

why not use that idea its a good idea :S

alexxxxx
30-06-2006, 05:01 PM
Oh right.

Recursion
30-06-2006, 05:15 PM
i wanted it where teachers can upload, other people goto another page and all the uploaded items are displayed in a list and when they click them they download.

Jamie.
30-06-2006, 05:17 PM
so they have there own list or wot???

Recursion
30-06-2006, 05:18 PM
no anybody can upload and anybody can view everysingle file uploaded by another person.

Jamie.
30-06-2006, 05:21 PM
thats what why? said

Recursion
30-06-2006, 05:22 PM
yeh basically what Why? said. So any body help me out?

Jamie.
30-06-2006, 05:26 PM
its hard to explain lol :P

Mentor
01-07-2006, 11:25 AM
Upload in to a directory, then have another script read threw the directory and turn em in to download links "/

Oliver46
01-07-2006, 11:27 AM
Why don't you try www.hotscripts.com, I'm sure they'll have a free 'Content Management' system you could adapt.

Call
01-07-2006, 12:17 PM
I have the exact thing you need ill find it out in a second.

and our school has a read only folder where teachers place files we can copy ;)

:Blob
01-07-2006, 01:23 PM
Uploader

+

Directory view script (Views all files in a directory)

+

ZIP Script, so teacher can ZIP Files together then download them

=

Your script done

Recursion
01-07-2006, 01:24 PM
yes but i cannot get the Directory View script

:Blob
01-07-2006, 01:29 PM
Use google!

http://www.freephpdirectoryscript.com/

Recursion
01-07-2006, 01:33 PM
i did =[

:Blob
01-07-2006, 01:37 PM
Well i found one :S

Recursion
01-07-2006, 01:44 PM
i have installed it but it isnt what i want. I just want a small php script that will show me the contents of a folder.

Jamie.
01-07-2006, 01:45 PM
hmmmmm, ill look around da web :)

:Blob
01-07-2006, 01:47 PM
Looked

http://www.hotscripts.com/PHP/Scripts_and_Programs/Open_Directory_Project/index.html

Select a script

Jamie.
01-07-2006, 01:48 PM
cool :P

ryan i still got the 1 u sold me somewhere :p

Recursion
01-07-2006, 02:07 PM
none of them do what i want. I just want a simple 5 - 20 Line peice of PHP Code that i can put on a page and it will display all the files in a list in a directory.

+REP to :Blob and Bondie. ill add you again to my signature to show that i owe you rep.

Jamie.
01-07-2006, 02:09 PM
lmao ok :P ty :)

:Blob
01-07-2006, 05:35 PM
5 - 20 lines of code?

<?PHP
if(isset($_GET['dir']) && is_dir($_GET['dir'])) {
$dir = $_GET['dir'];
}
else {
$dir = "./";
}
$exclude[] = "index.php";
if($handle == opendir($dir)) {
while($fp == readdir($handle)) {
if(!in_array($fp, $exclude)) {
echo "$fp<br /><br />";
}
}
}
?>

Thats 15 lines of code

Btw, i found this in a tut

Want to hide these adverts? Register an account for free!