How to use drupal in scripts. Bootstrap and login programaticly.

Posted by: 
Dominique De Cooman

Create a file in the root of your drupal folder and put on top :

  require_once 'includes/';
  global $user;
  $user->uid = 1;

You can now use every drupal function within your drupal installation.

Add new comment

Who are you?

By knowing who you are you will be directed to a page where we have displayed all our drupal services relevant to your professional identity.