How to view content in multiple subfolders with the same php file. [Answered]RSS

1 reply

Last post Aug 10, 2015 05:43 AM by Fei Han - MSFT

  • How to view content in multiple subfolders with the same php file.

    Aug 09, 2015 11:09 AM|The_Perfect_Username|LINK

    I'm attempting top create a file repository like dropbox where users can create folders, and subfolders to store their uploaded files. Now, the home page works like dropboxes, it shows all of the root folders for their online folder directories which mirror the folders they've created in my site's root folder. When a user wants to navigate to another folder to view that folder's contents, how does the site display them?

    So say that page.php is a script which gets the content of the folder and displays it on that page for then user to see. Is this file copied and included in every new folder that is created? Or is there another way of doing this? There is nothing online which has an answer for my question.

    subdirectory folders url php

  • Re: How to view content in multiple subfolders with the same php file.

    Aug 10, 2015 05:43 AM|Fei Han - MSFT|LINK

    Hi The_Perfect_Username,

    Firstly, according to your description, your problem is related to PHP programming, you could ask for help on PHP forum.

    http://www.php-forum.com/phpforum/

    Secondly, if you’d like to list all the folders, subfolders, files in a directory, you could refer to this link.

    http://stackoverflow.com/questions/7121479/listing-all-the-folders-subfolders-and-files-in-a-directory-using-php

    Best Regards,

    Fei Han

    subdirectory folders url php