php noob, help

Discussion in 'PHP' started by mcdeere02, Aug 5, 2009.

Thread Status:
Not open for further replies.
  1. #1
    i am hosting my own site from an apache server, and am trying to make a page to do with file submission. the way i have it set up now is very basic, as i am just learning. . the page has a simple browse for file line, and a submit line. i use php to put the file in a folder, and then just link that folder on the site to view files..

    i am wondering how i can make it so there is a description they can add, a title, and then a way to display all the that were submitted easily on a page.

    i know basic knowledge of php, and i think this task will require mysql . . but i can never get them configured together correctly. . so if there is another database that is easier to use than mysql i would like to hear about it. . or just a page of how to get them configured together. . every tutorial i tried doesn't seem to work right..

    also, what kinda code you should i get the basics of if i wanna do a file submission like this?

    any help is appreciated. thanks.
     
    mcdeere02, Aug 5, 2009 IP
  2. EricBruggema

    EricBruggema Well-Known Member

    Messages:
    1,740
    Likes Received:
    28
    Best Answers:
    13
    Trophy Points:
    175
    #2
    1 use a database (mysql)
    2 use a files.bbs file to save comments/description from file (like the very very very old way).
     
    EricBruggema, Aug 5, 2009 IP
  3. premiumscripts

    premiumscripts Peon

    Messages:
    1,062
    Likes Received:
    48
    Best Answers:
    0
    Trophy Points:
    0
    #3
    As of PHP 5, you can use SQLite. It's much easier to configure since the DB is in fact just a text file. Note you do need PHP5.

    For more info, see us2.php.net/manual/en/book.sqlite.php
     
    premiumscripts, Aug 5, 2009 IP
Thread Status:
Not open for further replies.