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
https://forums.phpfreaks.com/topic/259876-cant-find-the-correct-path/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

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