I made a simple class that provides a simple SQLite-based persistant FIFO stack class for PHP 5 (similar conceptually to Stack::Persistent in Perl).
A number of times I've written Drupal scripts that run out of memory while trying to process large amounts of nodes (changing taxonomy, etc.). Adding them to a persistant stack, then doing them in batches, is an easy way to remedy this.
Example usage:
// Open or create stack: if you don't specify a filename, 'stack.db' will be used
$stack = new PersistentStack('my_stuff.db');
// Add simple things to a named stack
$stack->push('clothes', 'socks');
$stack->push('clothes', 'pants');
// Add something complete to another named stack
$stack->push('books', array(
'title' => 'The Tin Drum',
'author' => 'Gunter Grass'
));
// Output the top of a stack without removing it from the stack
print $stack->last('clothes');
// Retrieve the top of a stack, removing it from the stack
$last_item = $stack->pop('clothes');Documentation and code at GitHub.

Tue, 2010-02-16 12:00
Mike Cantelon? You an Asian my man? Your blog such amazing works.
Mon, 2010-02-15 14:53
sanalburasi
sanalburasi
sanalburasi
sanalburasi
sanalburasi
sanalburasi
sanalburasi
sanalburasi
Thu, 2010-02-04 21:12
for to play the enjoyable games; Çok Güzel Oyunlar, for the high quality photos Resimler Resimler Güzel Resimler and for the newest films; Online Film izle
Mon, 2010-01-18 03:00
good
Thu, 2009-10-29 09:24
i think your blog can be good base for essay help writing for students who need an essay
Tue, 2009-10-20 10:26
Things newbies need to be aware of before doing this tutorial
1.) The comments in the code snippets from the po files are *NOT* legal comments. The comment delimiter for po files afaict is "#:", maybe with a required leading unix newline. Do *not* use the shown "//" at the beginning of a comment line!
2.) There is no explaination given why localisation names diverge so much, even vertically across the stack (zh_cn vs. zh-cn or en_us vs. JN0-522 eng or deu vs. de_de) The default application stack lacks consitency here, newbies need to be aware of that and establish their own conventions if the need arises.
3.) The tutorial mostly just offers codesnippets and hardly says where to put what - newbies will have to look up the Cake filename/classdirectory convetions. As this tutorial is for 1.2 but the manual only covers 1.1 (as of now Sebtember 2007) there are a few differences to expect.
4.) Everything under /app/view/ (templates) uses '.ctp' as ending as of CakePHP version 1.2. NS0-163 Trying to figure out CakePHP templating standards using this tutorial and the manual can be confusing, keep the above in mind.
5.) The 'en_gb.gif' files (presumably images of flags)
don't exist within the framework and it isn't said where they belong.642-973 I presume studying the class(es) used to instance the $html object or studying the manual may bring some insight here.
6.) Bottom line: This is NOT a tutorial for people who aren't safe in navigating around in unknow application frameworks and learning their methodologies. Nor is it for those who are easyly confused by object oriented concepts. The scarcity of detail information in this tutorial can only be met by doing own further research on CakePHP! ... However it does give a nice strategy for dealing with persistant internationalisation for those willing to dive into the details to get it working for their application.
Tue, 2009-10-13 01:59
and for a few moments they appeared to go quite mad. To the amazement of everybody three of them flung themselves upon Boxer. Boxer saw them coming and put out his great hoof, caught a dog in mid-air and pinned him to the ground. Aion kinahmetin2 yang
Tue, 2009-10-20 02:56
Keep up the good work, and post more articles like the one you have posted above.
Mon, 2009-05-04 16:01
Great idea, and an elegant execution. I don't know why I hadn't thought of using SQLite for this sort of thing in the past, as I have always crammed things into flat files and dealt with all of the read/write/lock issues that entails.
Tue, 2009-10-27 02:07
Your web site is really nice if we think the others
I think you had worked about that web site, hardly.
Like I see. Thank you for information tht i get.