Page 1 of 1

How is this error appearing when I am...

Posted: Sun Nov 02, 2003 8:46 pm
by 888storm
attempting to connect to the database. What is wrong with this code?



Fatal error: Failed opening required 'cis-test/cis_connect.php' (include_path='./:/usr/local/lib/php') in /home/boon888/bluestormmedia-www/cis-test/Barriersquestions.php on line 18

Do I have the wrong path for the database I want to connect to?

This is the script in my connection script php page:

11 DEFINE (DB_USER, "xxxxxx");
12 DEFINE (DB_PASSWORD, "xxxxxx");
13 DEFINE (DB_HOST, "localhost");
14 DEFINE (DB_NAME, "xxxxxxxxxxx_com");
15 # display_members.php
16 $connection=mysql_connect(DB_HOST, DB_USER, DB_PASSWORD);


This is the code where my php page calls the connect php page

17 //Include the MySQL information
18 require_once ("cis-test/cis_connect.php");
19 $db=mysql_select_db(DB_NAME);


I am new to this but not to programming. Any suggestions?

Thanks

sincerely,

Sonac

Posted: Mon Nov 03, 2003 3:43 am
by twigletmac
It can't find the cis_test/cis_connect.php file or doesn't have permissions to open it - I would check that the path is correct and that you do have read permissions on it.

Mac

Posted: Mon Nov 03, 2003 9:46 am
by 888storm
Hi Twigletmac,

I will change the path and see if that works.

Thanks

Sonac