Jump to content


Photo

MYSQL File Manager


  • Please log in to reply
2 replies to this topic

#1 Pbkilldezines

Pbkilldezines

    Young Padawan

  • Members
  • Pip
  • 31 posts

Posted 29 October 2004 - 02:11 PM

Ok... I have a sub-site that is all .doc word files and people can upload there own. Is there anyway to manage the files in a MYSQL table so I can delete, rename .exe.

Please Help Thanks.

#2 rc69

rc69

    PHP Master PD

  • P2L Staff
  • PipPipPipPip
  • 3,827 posts
  • Gender:Male
  • Location:Here
  • Interests:Web Development

Posted 31 October 2004 - 11:48 AM

you can manage them in a database, but it'd be useless... as far as i know mySQL databases contain text/numbers not file info

get an ftp program like coreFTP and you'd be able to manage the files from there on a large scale

#3 Dabu

Dabu

    Young Padawan

  • Members
  • Pip
  • 148 posts
  • Location:Greensboro, North Carolina

Posted 31 October 2004 - 12:31 PM

sure you can, when a user uploads a file just create a data insert in the table that has a unique id number, filename, and anything else you want to solve. Then when you want to delete something just use the unlink(); command and get the filename from the DB.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users