You can just include bootstrap.inc, then call drupal_bootstrap (http://api.drupal.org/api/function/drupal_bootstrap/5) to your required level of bootstrapping. On 21/09/2007, Tomas J. Fulopp <tomi@vacilando.org> wrote:
Hi,
Can anybody help me please - I've reviewed tonnes of documentation for days but cannot find the answer.
I'm developing a module that displays a Java applet and at the same time prepares data for the applet. This data is stored using cache_set().
The applet then requests this data using a separate call... and my problem is -- in the program that provides this data to the applet, I do not know how can I connect to the database. I assume I need to include bootstrap.inc and a couple of other scripts, but all my experiments failed.
Can you please give me some hints as to what is the proper way to to this, or can you point me to a page or module that has employed this technique.
I really would not bother you if I could find it myself. I hope somebody answers.
Cheers,
Tomas
-- Regards Steven Jones