Some times in Drupal you may need to create a script in a subdirectory that runs with access to the Drupal functions.
After a few tries and find the inspiration in this site:
http://data.agaric.com/node/2825
This is the answers:
$base_dir = $_SERVER['DOCUMENT_ROOT'];
chdir($base_dir);
require_once "./includes/bootstrap.inc";
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);


Comentarios recientes
hace 2 años 8 semanas
hace 2 años 16 semanas
hace 2 años 41 semanas
hace 2 años 41 semanas