+ Reply to Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Programming your own forum

  1. #1
    merrillmck is offline x10 Sophmore merrillmck is an unknown quantity at this point
    Join Date
    Jun 2009
    Location
    Florida, USA
    Posts
    134

    Programming your own forum

    Are most forum scripts tied to an SQL database? Or do some scripts reside solely in PHP, ASP, or ASP.NET/C#/VB code without an SQL database for posts and user accounts?

    Has anyone tried to write their own forum software?

  2. #2
    garrettroyce's Avatar
    garrettroyce is offline Generally Helpful Member garrettroyce is a glorious beacon of lightgarrettroyce is a glorious beacon of light
    Join Date
    Apr 2008
    Location
    IL, USA
    Posts
    3,746

    Re: Programming your own forum

    I am writing my own software. It will take you a long time to do, and I would say the average programmer would not be able to write a better software than what is out there currently.

    A mysql query will take probably around 10 to 100 times less to execute than file access, so SQL is really the only viable option.
    gjr.gr - coming soon: secrets of OCD coding from a self taught tinkerer

  3. #3
    nirajkum is offline x10 Sophmore nirajkum is an unknown quantity at this point
    Join Date
    Mar 2008
    Posts
    161

    Re: Programming your own forum

    if you want a forum for just your own purpose then you should not code the forum ... there are lots of free forum available like smf, phpbb they are nice

  4. #4
    xadrieth is offline x10Hosting Member xadrieth is an unknown quantity at this point
    Join Date
    Apr 2009
    Posts
    62

    Re: Programming your own forum

    I have yet to see a forum that does not use any kinda of SQL.

    If your going to make your own forum, your in for a long programming trip.

    Your first probably going to have to come up with the database design (like for most scripts). then the layout of your program (how it looks when viewed), then how it functions (how the program is made).

    In short, it's a major hassle. If your going to create your own forum, i would suggest making it just a simple help forum, like for video game help, or a product.

    Just use an existing forum package out there, MyBB is pretty good.

  5. #5
    misson is offline x10 Spammer misson is a jewel in the rough
    Join Date
    Mar 2008
    Location
    Libertatia
    Posts
    2,500

    Re: Programming your own forum

    You'll have to store data somehow. You don't have to use a relational database (an object database is an alternative), and you don't need to use a DBMS that uses SQL, but you don't want to write you own DBMS. For one thing, it will take awhile to implement all the functionality. For another, you'll probably get something wrong, unless you're a DB guru.

    Read the thread where merrillmck asked "Why use SQL anyway?" which expands on this post.
    Last edited by misson; 07-02-2009 at 11:54 AM.
    Be sure to read all pages linked in this post; they have further information that should prove useful. When asking for help, make sure you follow Eric Raymond's and Jon Skeet's guidelines for prompt, accurate responses. Please answer any questions I ask; they're not rhetorical (probably). Any posted code is intended as illustrative example, rather than a solution to your problem to be copied without alteration. Study it to learn how to write your own solution.
    Misson, not Mission.

  6. #6
    noerrorsfound is offline x10 Elder noerrorsfound is an unknown quantity at this point
    Join Date
    Mar 2006
    Posts
    868

    Re: Programming your own forum

    Quote Originally Posted by xadrieth View Post
    I have yet to see a forum that does not use any kinda of SQL.
    YaBB.

  7. #7
    merrillmck is offline x10 Sophmore merrillmck is an unknown quantity at this point
    Join Date
    Jun 2009
    Location
    Florida, USA
    Posts
    134

    Re: Programming your own forum

    For any .NET programmers:

    I found this open-source ASP.NET/C# forum:

    http://www.yetanotherforum.net/

    It uses Microsoft SQL Server which I believe is incompatible with X10. However, I think one could go and substitute all the MS SQL references with MySQL references ...

  8. #8
    drf1229 is offline x10Hosting Member drf1229 is an unknown quantity at this point
    Join Date
    Jun 2009
    Posts
    71

    Easy way out of using a database

    I actually don't use MySQL at all, yet I'm able to make forum-like sections on my site (http://www.algebrahelper.x10hosting.com/feedback.php). My secret is I just use the PHP fread, fwrite, fopen commands. Its simple really. The feedback page reads a .txt file (using fread()), then posts its output on the page (using print()). When you go to submit a post, it checks to see if you're logged in, then it prompts you for your comment. When you click submit, it simply writes your comment to the .txt file (using fwrite()). This may seem insecure, but remember, nobody can see the PHP code of your .php file, so its actually very secure. Its my simple way to getting out of MySQL, or using any other database.
    Last edited by drf1229; 07-04-2009 at 12:50 PM.

  9. #9
    garrettroyce's Avatar
    garrettroyce is offline Generally Helpful Member garrettroyce is a glorious beacon of lightgarrettroyce is a glorious beacon of light
    Join Date
    Apr 2008
    Location
    IL, USA
    Posts
    3,746

    Re: Programming your own forum

    Yeah, it's definitely possible to use files instead of SQL (SQL uses files itself) but SQL is so highly optimized for the task, anything you program will not be nearly as quick.
    gjr.gr - coming soon: secrets of OCD coding from a self taught tinkerer

  10. #10
    drf1229 is offline x10Hosting Member drf1229 is an unknown quantity at this point
    Join Date
    Jun 2009
    Posts
    71

    Re: Programming your own forum

    Probably true, but I still use purely PHP, it seems easier to me.

+ Reply to Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. X10 Forum Club.Join Now!!!!!
    By tittat in forum Off Topic
    Replies: 0
    Last Post: 07-22-2008, 02:13 AM
  2. How many members does your forum has?
    By ironcross77 in forum Off Topic
    Replies: 40
    Last Post: 02-19-2008, 11:51 AM
  3. Replies: 2
    Last Post: 10-24-2007, 08:54 AM
  4. Forum dilema
    By Sundowner in forum Crossfire
    Replies: 1
    Last Post: 10-21-2007, 06:19 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers