script with No MySQL database required

Discussion in 'PHP' started by jbzcc, Sep 12, 2008.

  1. #1
    I am trying to seek everyone's opinion on
    having a forum on a site with
    No MySQL database required.
    I am not too comfortable with that
    what do you all think about it?
    Thanks
     
    jbzcc, Sep 12, 2008 IP
  2. serialCoder

    serialCoder Guest

    Best Answers:
    0
    #2
    it will be ok with a few users, but once the need for dynamic data arises, you will immediately feel the effects, flat files are not built for speed
     
    serialCoder, Sep 12, 2008 IP
  3. Barti1987

    Barti1987 Well-Known Member

    Messages:
    2,703
    Likes Received:
    115
    Best Answers:
    0
    Trophy Points:
    185
    #3
    SQL is based on file storage. This means that your info is actually stored on files, however, MySQL manages them.

    You can use file system, however, you need to make a system to deal with those files (indexing, data locking, relations, etc..) which you will end up with your own database system.

    You are better off using SQL which is already established and tested.

    Peace,
     
    Barti1987, Sep 12, 2008 IP
  4. mwasif

    mwasif Active Member

    Messages:
    816
    Likes Received:
    23
    Best Answers:
    1
    Trophy Points:
    70
    #4
    Database is always a better option. MySQL is not difficult, you might need a day or 2 to know the basic syntax of MySQL.
     
    mwasif, Sep 12, 2008 IP
  5. Shoro

    Shoro Peon

    Messages:
    143
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #5
    It's entirely feasible to create a secure forum script that uses flat files, but using MySQL will make the script far more efficient.
     
    Shoro, Sep 12, 2008 IP
  6. matthewrobertbell

    matthewrobertbell Peon

    Messages:
    781
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    0
    #6
    maybe try SQLite?
     
    matthewrobertbell, Sep 12, 2008 IP
  7. Greg Carnegie

    Greg Carnegie Peon

    Messages:
    385
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Interesting topic i was thinking about that, securing files would not be difficult all you need to do is put .htaccess file containing one line "deny from all" in directory with your data files.

    Instead of usual flat files i would serialize and deserialize objects - all data would be stored in objects. This would be - usually - faster then storing data in db.

    Depending on how you design it you would also need objects lists, which would be used for searching and filtring your data objects.

    The point is - you will end up writing your own database system
     
    Greg Carnegie, Sep 13, 2008 IP
  8. Daler

    Daler Peon

    Messages:
    11
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    I guess it would be alright as a basic forum, but once you get a few members, it'll just collapse.

    Plus, all of the users' info will be stored in a file, making it much easier to be accessed (albeit you could retrieve passwords instead of having to reset them). The best idea would be to use a database. There are very few powerful scripts that can be used without databases; They're just not secure enough.
     
    Daler, Sep 13, 2008 IP
  9. chopsticks

    chopsticks Active Member

    Messages:
    565
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    60
    #9
    They can be secure, and what do you mean "(albeit you could retrieve passwords instead of having to reset them)." You could do the same thing using a database, it just depends on whether or not you decide to hash it.

    The files could be stored in a directory under the web root, thus meaning they can only be accessed by the server/script and not visitors.
     
    chopsticks, Sep 13, 2008 IP
  10. jbzcc

    jbzcc Peon

    Messages:
    110
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Thanks everyone for your replies!
     
    jbzcc, Sep 17, 2008 IP