Forum Moderators: coopster

Message Too Old, No Replies

Upload with php - then download files if needed

         

slimey

6:16 pm on Aug 3, 2006 (gmt 0)

10+ Year Member



Hi all,

Im not the brightest kid on the block with php but i can get my head around it.

I know its possible to upload files using php to be stored in a folder on a webserver.
But is it possible to display all those files in that folder on a page and have them with a text link next to them which when click will allow the files to be downloaded.

AND

if they wanted to delete folders from that folder where everything is uploaded to is that possible too?

Sounds like alot ay? I think it is but id like to know.
SO can anyone help me and shed some light on this query of mine.

Cheers
Sleepy Sean

coopster

9:28 pm on Aug 3, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Yes, it is indeed all possible. You might want to break this down into pieces though. Perhaps first start with getting a listing out of the directory using PHP's Directory Functions [php.net]. The dir [php.net] class is probably the quickest/easiest to get rolling.

slimey

3:02 am on Aug 4, 2006 (gmt 0)

10+ Year Member



Ok kool, well if it is all possible i might start to try an write all this and look for a few tutorials on the net.

Anyone got any pointers for me before i start?

dreamcatcher

7:36 am on Aug 4, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi slimey,

I would start with the links provided by Coopster and take it from there. View some of the user contributions on the PHP.net website, they provide all sorts of useful code snippets.

Good luck.

dc