10 comments

[ 3.7 ms ] story [ 40.2 ms ] thread
This script was improved upon (and further shrunk) by a redditor named "illiterate":

  Using PDO
  Using SQLite
  No XSS holes
  No SQL injection holes
  File size is only 766 bytes
http://www.reddit.com/r/programming/comments/bvqbl/a_php_for...
I was actually coming into the comments section to hate on the "< 1kb forum" until I saw this. The first thing I had looked for yesterday was security holes and that took ~1 second due to the small filesize. Bravo illiterate.
It's amusing how "the web" bloats "push some text onto the end of an array" to 1K of interpreted code. No wonder web apps are so buggy.
with a UI, over a network, backed by a resilient persistence engine
Don't go to the demo page unless you want to severely lag your browser.
Here comes all the "A <insert language> Forum in x bytes of code" posts.
Yes these are generally useless, sure we can make a forum in 1kb but why? I can appreciate an elegant piece of code that shows a much better way to preform a task but lets make something really simple and see how small we can do it is pointless.
It's a game. People are having fun. Playing golf is also pretty pointless when you think about it.

Relax, nobody is suggesting this is how you are supposed to write all your code.

It is not most customizable and secure forum... but it works ;) Brilliant :D
Just learned that a 964bytes forum is not enough to stop the racist comments in the demo.