Browse File System

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
devarishi
Forum Contributor
Posts: 101
Joined: Fri Feb 05, 2010 7:15 pm

Browse File System

Post 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.
User avatar
jthermane24
Forum Newbie
Posts: 16
Joined: Wed Feb 17, 2010 8:15 pm
Location: New Jersey

Re: Browse File System

Post 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.
Post Reply