Behind the Scenes

The fact that sNews is a single file content management system has many advantages and some disadvantages. The main reason why it's in only one file is because the idea was to simply display content on any template and not having to adapt your template to any CMS. Even if you want to see how your template looks when used in a real website, you can always run it with sNews localy. The people who use sNews are mostly web designers that know what standards and accessibility are, but some of them are worried about sNews's speed and how will a whole system in one file reflect on browsing speed. The study showed that PHP's script parser is incredibly fast, able to read in 100,000 lines of code in about three seconds on an 800MHz computer. PHP code execution also is not affected by large scripts, although naturally its execution time will vary depending on how complex your code is. Reading and changing variables is almost instantaneous, whereas reading from and writing to files is one of the slower operations.

Dec 12th