[development] applet requesting cache item - please help

Earnie Boyd earnie at users.sourceforge.net
Fri Sep 21 11:50:52 UTC 2007

Quoting "Tomas J. Fulopp" <tomi at vacilando.org>:

> Thanks, Gerhard and Steven. Seems like a way to go; I should've 
> thought about cron, yes.

I needed to do something similar this week.  I created local/bin and 
local/include directories to keep the Drupal root clean.  In a 
common.inc file I included the following function.

* Include the Drupal bootstrap file after ensuring it exists where expected.
function drupalize() {
  while (!@stat('./includes/bootstrap.inc')) {
    chdir ('..');
  include_once './includes/bootstrap.inc';

Feel free to use as you see fit.

Earnie -- http://for-my-kids.com/
-- http://give-me-an-offer.com/

More information about the development mailing list