Flintstone – A key/value database store using flat files for PHP

XEWeb are proud to announce the release of Flintstone, a key/value database store using flat files for PHP.

Some of the features include:

  • Memory efficient
  • File locking
  • Caching
  • Gzip compression
  • Easy to use

All it requires is PHP 5 and read/write file permissions.

Take a look at example usage below:

try {
 
    // Load flintstone
    $db = new Flintstone(array('dir' => '/path/to/database/dir/'));
     
    // Set keys
    $db->load('users')->set('bob', array('email' => 'bob@site.com', 'password' => '123456'));
    $db->load('users')->set('joe', array('email' => 'joe@site.com', 'password' => 'test'));
    $db->load('settings')->set('site_offline', 1);
    $db->load('settings')->set('site_back', '3 days');
     
    // Retrieve keys
    $user = $db->load('users')->get('bob');
    echo 'Bob, your email is ' . $user['email'];
     
    $offline = $db->load('settings')->get('site_offline');
    if ($offline == 1) {
        echo 'Sorry, the website is offline<br>';
        echo 'We will be back in ' . $db->load('settings')->get('site_back');
    }
     
    // Delete a key
    $db->load('users')->delete('joe');
     
    // Flush database
    $db->load('users')->flush();
}
catch (Exception $e) {
    echo 'Exception: ' . $e->getMessage();
}

For more information and to download visit http://www.xeweb.net/flintstone/

Tweet the Tube – Live train updates on twitter

Tweet the Tube
I find it frustrating getting into London these days as there are always problems on the tube that causes delays.

To take action we have launched a new service dubbed “Tweet the Tube” which provides live updates whenever a tube service changes status, pulled straight from the Transport for London website and checked every 5 minutes.

All you have to do is follow “tweetthetube” on twitter: http://twitter.com/tweetthetube

Feel free to leave comments/suggestions on this page.

GoLinks – PHP/MySQL Links Directory Script

GoLinksHere at XEWeb we are cracking open a bottle of champagne as we announce the new version of GoLinks.

GoLinks is a simple yet powerful and efficient links directory script with many features including unlimited categories, link submission, search engine friendly URL’s, multiple themes and language support with completely customizable templates.

Take a look at http://www.golinks-script.com to download, order and view a demo online.