Jump to content

Can't find the correct path


bugzy

Recommended Posts

I have this connection file "database_connection.php" under folder

 

C:\wamp\www\php\database\database_connection.php

 

and I'm calling it using required_once on file "add_database.php" under folder

 

C:\wamp\www\php\database\ManipulatingDatabase\add_database.php

 

Here's the code on

 

<?php

include_once('../database/database_connection.php');

?>

 

 

and I'm having this error

 

Warning: include_once(../database/database_connection.php) [function.include-once]: failed to open stream: No such file or directory in C:\wamp\www\php\database\ManipulatingDatabase\add_database.php on line 3

 

Warning: include_once() [function.include]: Failed opening './database/database_connection.php' for inclusion (include_path='.;C:\php5\pear') in C:\wamp\www\php\database\ManipulatingDatabase\add_database.php on line 3

 

 

I have tried everything else. Maybe there's something wrong on my .ini file?Anyone?

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.