Jump to content

Wayneio

New Members
  • Posts

    7
  • Joined

  • Last visited

    Never

Everything posted by Wayneio

  1. Example: file1.txt file2.img dir1 dir2 file3.doc files open, but directories just index so i need it, so when click on dir 1, it would then list files from there dir1file1.jpg dir1file2.xls etc
  2. Thanks, think I understand this. (Quite a PHP Noob atm) Would there be an easy way to change that code, so that instead of just excluding the directory, it makes it a link to only display files then within that directory?
  3. Hi, I have coded a site, whereby users can log in, and depending on their group, view all files within their group directory: if ($handle = opendir("storage/Admin/$group")) { while (false !== ($file = readdir($handle))) { if ($file != "." && $file != "..") { echo "<a target=\"_blank\" href=\"storage/Admin/$group/$file\">$file</a> <br />"; } } closedir($handle); } In this example, a user can click on their file, and it will let them download it, but if there is a folder (directory) in there, once clicked on, it will open a index of the directory. Is there a way instead, to let it open a custom page and list the files within it there?
  4. bump. Any advice / tutorials?
  5. Okay, I will do the security this way. I already have a user table with groups, id, login etc, I just need to work out how to manage uploaded files now, i.e upload, download and move dirs
  6. Thanks for your reply. My idea was to have access levels for groups of users, such as: Main folder - Journalists can upload / download Edited folder - Editors can upload / download / move between folders Final folder - Proofers can upload / download -Admins can access all folders This could be done with mysql access levels, but the main thing I need a tutorial / code for, is the uploading, viewing and deleting of files (initally for any user)
  7. Hi, I am very new to PHP, I have managed to create a basic database with a table of users, and a form for logging in. Is there a way to create an 'area' where the users that are logged in can view, upload and download files. For example, a file storage area just like dropbox? If so, can anyone share some basic code or links to tutorials to achieve this please. Afterwards, I would then like to set permissions for each of the users to only access certain folders within that 'storage area'. I realise there are many websites like dropbox and box.net, but I would like to code my own version. Thanks in advance
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.