Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Comment on

( #3333=superdoc: print w/ replies, xml ) Need Help??
Having worked on similar projects, one of the big questions to ponder before coding is how to store the data. As a neophyte coder who has been working with DBI and mySQL for about a month, I would heartly recommend using mySQL this would open up lots of doors ie easily searching messages for a word or phrase. And moreover, DBI used to intimidate me but I find it is really not that hard!

I have written a lot of widgets that store delimited information and the problem always seems to be the myriad ways a user can break it when reading their input back in. Also, many messageboards try to save on processing time by writing and appending static HTML pages. I would definitely avoid this and no matter what store each message seperately. If you enmesh seperate entities I garauntee some honcho will ask for seperate delivery one day. One approach many boards take is producing 2 flatfiles like post12503.content and post12503.dat with the dat carrying any info relevant to processing but not needed in content. I realize this is somewhat rambling but these are all issues I encountered in writing messageboard type apps.
HTH
jg

_____________________________________________________
Think a race on a horse on a ball with a fish! TG

In reply to Re: Writing a web message board from scratch by jerrygarciuh
in thread Writing a web message board from scratch by tomazos

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • Outside of code tags, you may need to use entities for some characters:
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.
  • Log In?
    Username:
    Password:

    What's my password?
    Create A New User
    Chatterbox?
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others chilling in the Monastery: (7)
    As of 2014-12-27 01:33 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      Is guessing a good strategy for surviving in the IT business?





      Results (176 votes), past polls