[development] $user->uid from outside drupal

Karoly Negyesi karoly at negyesi.net
Sat Jun 17 20:04:23 UTC 2006


On Sat, 17 Jun 2006 21:43:03 +0200, Robert Wohleb <rob at techsanctuary.com>  
wrote:

> Take a look at drupal_bootstrap(). I'm not sure if you need to do a full
> bootstrap, but I don't think it would hurt. See update.php for an  
> example.

It will hurt your performance. You want DRUPAL_BOOTSTRAP_SESSION.

> http://api.drupal.org/api/4.7/function/drupal_bootstrap
>
> ~Rob
>
> Tamir Khason wrote:
>> Hi, all.
>>
>> in 4.6 it was enough to include bootstrap.inc and common.inc and then

wow. including bootstrap.inc and common.inc basically loaded all Drupal  
which is quite a heavy operation...


More information about the development mailing list