Database connection

scorpionz
scorpionz's picture

Joined: 2009-08-15
Posts: 1
Posted: Sat, 2009-08-15 07:44

Hi this is scorpionz.. i am facing a problem for the last 2 days

Description:
I have a project with path
c:/xampp/htdocs/mysite

and in root i am making a database connection file with the name
c:/xampp/htdocs/mysite/config.php
Thats my configuration file name to connect with db.

I have a folder in root of drupal with the file inside i.e:
c:/xampp/htdocs/mysite/myfolder/testpage.php

The testpage.php consists of some queries drupal built in like db_quey()... etc

I am including this config.php to testpage.php in this way..

<?php
include '../config.php';
?>

It seems to be a correct way....

but i am getting error in this way while running that file in this way:
http://localhost/mysite/myfolder/testpage.php

Errors

Warning: include_once(./includes/bootstrap.inc) [function.include-once]: failed to open stream: No such file or directory in C:\xampp\htdocs\mysite\config.php on line 13

Warning: include_once() [function.include]: Failed opening './includes/bootstrap.inc' for inclusion (include_path='.;C:\xampp\php\pear\') in C:\xampp\htdocs\mysite\config.php on line 13

Fatal error: Call to undefined function drupal_bootstrap() in C:\xampp\htdocs\mysite\config.php on line 14

I am stuck to move..
Any response will be apprecited.
One more thing i am using drupal 6.

Regard
scorpionz

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sat, 2009-08-15 16:30

I'm a bit confused. Are you installing gallery for the first time or trying to embed in Drupal?
I don't know anything about xampp but if you install gallery though the UI it creates a config.php file for you.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team