[development] How to control background processes from inside Drupal?

icerain doubaokun at gmail.com
Mon May 10 15:22:31 UTC 2010


I always use this script for debug. :)

On Mon, May 10, 2010 at 11:08 PM, Greg Knaddison
<Greg at growingventuresolutions.com> wrote:
> 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
>



-- 
A decathlon Drupal developer & programmer
http://blog.eood.cn/


More information about the development mailing list