Board index   FAQ   Search  
Register  Login
Board index PHP PHP General

Advice

General discussions related to php

Moderators: macek, egami, gesf

Advice

Postby evilgenius82 » Mon Jun 11, 2012 11:05 am

Hi Everyone, I'm new to PHP as much as I am to this site.

I need some opinions on what the best method would be to choose:

Scenario:
I am creating a file management system in where users can upload files to a selected directory.
The uploaded files will then be listed on a page in which can be downloaded or deleted.

The question:
what is the best approach? To create a table in a database which holds the application path?
Or will PHP code such as opendir / read dir be sufficient?

Thanks for all input!!

Ryan
evilgenius82
New php-forum User
New php-forum User
 
Posts: 14
Joined: Mon Jun 11, 2012 10:55 am

Re: Advice

Postby ejsexton82 » Tue Jun 12, 2012 2:57 am

First, there are some free prepackaged solutions out there which do what you are describing. You can Google "php file manager" if you do not want to reinvent the wheel.

Second, having a database may not be necessary. There are reasons why a database would be necessary, but unless you can come up with a argument for having a database, it would add unnecessary complexity to your application.

I hope that helps. Good luck!
User avatar
ejsexton82
New php-forum User
New php-forum User
 
Posts: 86
Joined: Mon Jun 04, 2012 10:05 pm
Location: Ankara, Turkey

Re: Advice

Postby evilgenius82 » Wed Jun 13, 2012 9:27 am

Thank you for your reply ejsexton. This is for a uni project so I have to show what I am capable of.
Im quite new to PHP so its great to know there are ready made packages out there.
I will take your advice and build my design based on application links not being stored in a database.

Thank you again!

Regards,
Ryan
evilgenius82
New php-forum User
New php-forum User
 
Posts: 14
Joined: Mon Jun 11, 2012 10:55 am


Return to PHP General

Who is online

Users browsing this forum: No registered users and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.