21 Sep
2007
21 Sep
'07
1:50 p.m.
Quoting "Tomas J. Fulopp" <tomi@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. <code> /** * Include the Drupal bootstrap file after ensuring it exists where expected. */ function drupalize() { while (!@stat('./includes/bootstrap.inc')) { chdir ('..'); } include_once './includes/bootstrap.inc'; drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL); } </code> Feel free to use as you see fit. Earnie -- http://for-my-kids.com/ -- http://give-me-an-offer.com/