Page 1 of 1

Browse File System

Posted: Sat Feb 20, 2010 7:46 pm
by devarishi
Hi,

Have a look at this HTML Tag / Code:

Code: Select all

<a href="Uploads/Media"> Browse Media Files </a>

Clicking that link would open the named folder in the web browser displaying the files/folders in that folder.

However, we don't have any control on how the contents are shown on the web page. We cannot perform any sorting, for example.

So, what approach can we use to achive some basic functionalities such as:

Sorting of files/folder on thier Name & Creation Date
Providing Access or Setting Restrictions on Certain Files / Folders, etc.
Formatting the Web Page itself which is otherwise has White Background and no Headers.

Note: I am using IIS on Windows Server 2003.


Thanks,
Dev.

Re: Browse File System

Posted: Sun Feb 21, 2010 12:06 am
by jthermane24
Hi, I'll give you some ideas to start with for each point.
Sorting of files/folder on thier Name & Creation Date
If you store the information about the media in a mysql database you can use php to call up the data sorting it by the field you want to sort by.
Providing Access or Setting Restrictions on Certain Files / Folders, etc.
Create a login system and using the same mysql database assign restrictions to the files so that only logged in users with certain clearances can access them.
Formatting the Web Page itself which is otherwise has White Background and no Headers.
Look into learning css for formatting of the webpage, viewforum.php?f=68 contains many useful posts about that

---
You could also look into an already scripted system such as http://www.phpalbum.net/ or http://www.phpgalleryscript.org/. And then you don't have to worry about all the dirty work.

---
These are just some ideas to get you started. What you want here isn't going to be a simple slapstick solution, it's going to require so work and commitment. Don't take the information that I've given you as the only information that there is. I'm sure others will have better/more ideas for you to consider. Remember the first step into any project is research.