Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

4chan: database or flat-file system?

Name: Anonymous 2010-03-14 4:47

How are posts saved in the 4cdhan imageboard software? Is it a database or still a flat-file system?

Name: OP 2010-03-14 4:57

4chan even.

Name: Anonymous 2010-03-14 5:21

>>1
Last I read, MySQL. The software is based off of Futallaby (http://www.1chan.net/futallaby/), though it's been largely rewritten.

Name: Anonymous 2010-03-31 23:53

The textboards use a flat-file system (look up shiichan), and the imageboards use a database. I can't wrap my head around coding a flat file imageboard, to be honest.

Name: OP 2010-04-02 11:28

1. Back when PHP wasn't that popular or even nonexisting and Perl was used for these image/textboard scripts, did they also use flat files or was an own database coded for this? Did Perl support databases at all back then (I read it does now)?

2. If flat/text files were used, how did they handle multiple access to one file, like hundreds of people posting in the same thread? Does Perl handle them one after each other automatically, or does a coder have to add his own lines in the script to handle this?

Name: Anonymous 2010-04-02 16:25

>>5
Back when PHP wasn't that popular or even nonexisting and Perl was used for these image/textboard scripts
This is incorrect, as the very first imageboard script (GazouBBS, which Futaba is based on) is coded in PHP. As for you second question, I wouldn't know. You would really only need a database if it's going to be a traffic heavy site.

Name: Anonymous 2010-05-14 21:49

>>5
Perl has file-locking. Shiichan isn't written in Perl, though.

Name: Anonymous 2010-05-20 22:26

>>7

PHP has file locking (flock). You can also do atomic updates by writing to a temp file and using rename(). Of course, you need both.

Don't change these.
Name: Email:
Entire Thread Thread List