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..
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

Comments

nikhi.pk’s picture

can anyone help me to solve this problem