OneFileCMS is just that. It's a flat, light, one file CMS (Content Management System) entirely contained in an easy-to-implement, highly customizable, database-less PHP script.
Coupling a utilitarian code editor with all the basic necessities of an FTP application, OneFileCMS can maintain a whole website completely in-browser without any external programs. Screenshots
* Validating, semantic, and commented markup. Tested in FF, Safari, and IE7/IE8.
* Small footprint (20.4 kb)
* Possibly the easiest installation process ever
* All the basic features of an FTP application like renaming, deleting, copying, and uploading
uploads/deletions, you're going to want to break out an actual FTP program.)
* Gracefully degrading CSS and Javascript
* 100% re-brandable with page title stored in variable and a modifiable filename
Requirements
* UNIX/Linux host, Apache
* PHP5 (PHP4 untested)
* File permission privileges
void httpRequest()
{
byte theByte;
xPortSerial.print("GET ");
xPortSerial.print(PHP_PAGE_LOCATION);
// value0 = 123 and value1 = 456
// You should change these to be your sensor values or whatever you want to send
// (see php code if you want to add more values or change the names value0/value1
xPortSerial.print("?value0=123&value1=456");
xPortSerial.print(" HTTP/1.1n");
xPortSerial.print(WEB_HOST);
while(!xPortSerial.available()) {} // Just loop until available
theByte = xPortSerial.read();
if (theByte != 0)
Serial.println("Passed.");
else
Serial.println("Failed.");
}
Using a device called a trampoline, a function could return a function which needs to be called. Observe:
function add ($x, $y) {
if ($y > 0) {
return array (”add”, $x + 1, $y - 1);
} else {
return $x;
}
}
$f = array (”add”, 6, 5);
do {
$func = $f[0];
$f = $func($f[1], $f[2]);
} while (is_array ($f));It’s hardly pretty (though implicit evaluation improves this drastically over other methods) but it’s not awful and makes some things in PHP possible that would otherwise require writing an extension in another language.
Memcached will dramatically speed up MediaWiki. Some pages on my site, like the Main Page took 40 seconds to load before Memcached, but only 7 after installing Memcached. "Memcached is a high-performance, distributed memory object caching system". Memcached is essentially a database caching system which is object orientated, and works even if the database is updated. (MySQL caching discards the entire cache when a table is changed)
I'm Michael Plasmeier otherwise known as ThePlaz. I am a senior at Haverford High School
as well as a web developer and project manager with a focus on user experience and design. I am also a TV Show producer and host and an open source app maintainer. Next year, I will be attending the Massachusetts Institute of Technology (MIT). See Why MIT for more.