News for hackers. Stuff that matters.
Re:A PHP Forum in 964 bytes of code by miles on Tuesday April 27, 2010 @02:28AM (#1297414)
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...
Re:A PHP Forum in 964 bytes of code by jqueryin on Tuesday April 27, 2010 @06:46AM (#1297800)
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.
Re:A PHP Forum in 964 bytes of code by puredemo on Tuesday April 27, 2010 @03:35AM (#1297515)
Don't go to the demo page unless you want to severely lag your browser.
Re:A PHP Forum in 964 bytes of code by robotkad on Tuesday April 27, 2010 @07:14AM (#1297834)
Here comes all the "A <insert language> Forum in x bytes of code" posts.
Re:A PHP Forum in 964 bytes of code by robryan on Tuesday April 27, 2010 @08:02AM (#1297896)
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.
Re:A PHP Forum in 964 bytes of code by compay on Tuesday April 27, 2010 @08:54AM (#1298040)
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.

Re:A PHP Forum in 964 bytes of code by ismin on Tuesday April 27, 2010 @08:42AM (#1298008)
It is not most customizable and secure forum... but it works ;) Brilliant :D
Re:A PHP Forum in 964 bytes of code by ntulip on Tuesday April 27, 2010 @09:22AM (#1298133)
Just learned that a 964bytes forum is not enough to stop the racist comments in the demo.
Re:A PHP Forum in 964 bytes of code by jrockway on Tuesday April 27, 2010 @03:31AM (#1297509)
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.
Re:A PHP Forum in 964 bytes of code by aaronblohowiak on Tuesday April 27, 2010 @03:56AM (#1297549)
with a UI, over a network, backed by a resilient persistence engine