How is this error appearing when I am...

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
888storm
Forum Newbie
Posts: 2
Joined: Sun Nov 02, 2003 8:46 pm
Location: Toronto

How is this error appearing when I am...

Post 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
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post 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
888storm
Forum Newbie
Posts: 2
Joined: Sun Nov 02, 2003 8:46 pm
Location: Toronto

Post by 888storm »

Hi Twigletmac,

I will change the path and see if that works.

Thanks

Sonac
Post Reply