[support] Database connection

Awtar Singh asingh at quantum-coders.com
Sun Mar 25 06:50:17 UTC 2012


Gerald -

Add period before /includes/bootstrap.inc if you are executing the script from the Web root.

Or please give the exact error that you are getting.

Regards,

Awtar Singh
Executive Director
Quantum Coders LLC

www.quantum-coders.com
 
Sent from my iPhone

On Mar 25, 2012, at 8:47 AM, Gerald Klein <jk at zognet.com> wrote:

> I tried this and also included the define statement for the variable that require_once is using and it errors out including bootstrap.inc.
> It needs something else. 
> 
> thanks for your post, anyone else?
> 
> 
> define('DRUPAL_ROOT', getcwd());
> 
> require_once DRUPAL_ROOT . '/includes/bootstrap.inc';
> drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
> 
> 
> On Sat, Mar 24, 2012 at 10:12 PM, Vaibhav Jain <in.vaibhavjain at gmail.com> wrote:
> Just paste these 2 lines in you external file
> 
> require_once './includes/bootstrap.inc';
> drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
> 
> these are also included in index.php. These are for D6
> 
> On Sun, Mar 25, 2012 at 8:28 AM, Gerald Klein <jk at zognet.com> wrote:
> Hi I need to pull a dataset in an ajax file. What drupal includes to I need to use the drupal db connection. 
> 
> thanks any help is appreciated
> 
> --jerry
> 
> -- 
> Gerald Klein DBA
> www.geraldklein.com
> jk at zognet.com
> 708-599-0352
> 
> Linux registered user #548580
> 
> 
> 
> --
> [ Drupal support list | http://lists.drupal.org/ ]
> 
> 
> 
> -- 
> Regards,
> Vaibhav Jain
> 
> --
> [ Drupal support list | http://lists.drupal.org/ ]
> 
> 
> 
> -- 
> Gerald Klein DBA
> www.geraldklein.com
> jk at zognet.com
> 708-599-0352
> 
> Linux registered user #548580
> 
> -- 
> [ Drupal support list | http://lists.drupal.org/ ]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20120325/2fdd1142/attachment.html 


More information about the support mailing list