Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: PHP or MySQL forums?

  1. #1
    Join Date
    Jan 2007
    Posts
    629
    Thanks
    10
    Thanked 28 Times in 28 Posts

    Default PHP or MySQL forums?

    Which is better? Using MySQL for forums and running it out of space, (MySQL only alows so much space right?) or using php to write files and create chaos?

    I will be hosting this site myself when it launches, so no worries there.
    --Jas
    function GreatMinds(){ return "Think Like Jas"; }
    I'm gone for a while, but in the meantime: Try using my FTP script | Fight Bot Form Submissions

  2. #2
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    Well, both take up space; however, MySQL is both more reliable and less of a "resource hog". I would recommend using MySQL for it, but that's just my opinion.

    Hope this helps.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

  3. #3
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    Quote Originally Posted by thetestingsite View Post
    Well, both take up space; however, MySQL is both more reliable and less of a "resource hog". I would recommend using MySQL for it, but that's just my opinion.

    Hope this helps.
    I would have to second that.

    It would also depend on the system you're using.

  4. #4
    Join Date
    Jan 2007
    Posts
    629
    Thanks
    10
    Thanked 28 Times in 28 Posts

    Default

    Thank you! I was hoping you would say MySQL. Doesn't MySQL have a restraint on how much space you can use, though? Or is that only per-table?
    --Jas
    function GreatMinds(){ return "Think Like Jas"; }
    I'm gone for a while, but in the meantime: Try using my FTP script | Fight Bot Form Submissions

  5. #5
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    As far as I'm aware of, you can use as much space as your server disk will allow; I could be wrong though.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

  6. #6
    Join Date
    May 2007
    Posts
    20
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Yes.. mysql all the way. You'd have to really have an out of control forum or bad hosting account to run out of space. Also, remember to optimize your tables often.. that'll free up unused space that once held data, etc. You'd be amazed how much 'overhead' is left after deletes, etc.

    hanji

  7. #7
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    MySQL does have a limit on some systems (windows?), but that limit is 4GB, so I think you'd be ok (4GB of text data is crazy. My forum, which is doing quite well, for a few years, is about 50mb in the MySQL Db.)

    Definitely use MySQL. It is designed for this, fairly easy to use, and you know it will be (generally) efficient. Text files would be fine too, but they aren't designed for it (so you'd need to write your own functions in PHP to search them, etc. Why?), take some complex manipulation to get any sensible system running (as in not a new text file per post/item), and run slowly when searched, since they are not optimized and these text files can get long, so it's just like searching really long strings for data.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  8. #8
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    MySQL does have a limit on some systems (windows?), but that limit is 4GB
    That's a filesystem limit, not a MySQL limit. FAT32 doesn't allow files bigger than 4GiB, and MySQL stores each database in a single file. A Windows server using NTFS should be able to store databases up to around 16TiB.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  9. #9
    Join Date
    Jan 2007
    Posts
    629
    Thanks
    10
    Thanked 28 Times in 28 Posts

    Default

    What's a TiB?
    --Jas
    function GreatMinds(){ return "Think Like Jas"; }
    I'm gone for a while, but in the meantime: Try using my FTP script | Fight Bot Form Submissions

  10. #10
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Same as TB. Twey just uses TiB for clarification. And, sadly, I can't remember what.
    Either way, it means terabyte.
    Now that I think about it... wouldn't it be TeB or TaB? //confused
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •