[development] How to control background processes from inside Drupal?
Greg Knaddison
Greg at GrowingVentureSolutions.com
Mon May 10 15:08:57 UTC 2010
On Mon, May 10, 2010 at 1:02 PM, Leo Burd <leob at media.mit.edu> wrote:
> Is there any way to start/stop background processes from inside Drupal?
An alternative solution is to write a lightweight php file that runs
via command-line php and can write to the Drupal database.
You start off your file with
<?php
require_once './includes/bootstrap.inc';
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
And then you have full access to the Drupal environment including
db_query to be able to read/write information in the Drupal
environment.
Regards,
Greg
--
Greg Knaddison | 303-800-5623 | http://growingventuresolutions.com
Mastering Drupal | http://www.masteringdrupal.com
More information about the development
mailing list