I have current directory structure htdocs/mvc2/
which includes app and public folders.
If i run bootstrap.php http://localhost/mvc2/app/core/bootstrap.php
with require_once '../config/config.php'
it's included, works fine.
If i try to include bootstrap.php in my http://localhost/mvc2/public/index.php
I'm getting the following errors:
Warning: require_once(../config/config.php): failed to open stream: No such file or directory in C:\xampp\htdocs\mvc2\app\core\bootstrap.php on line 2
Fatal error: require_once(): Failed opening required '../config/config.php' (include_path='C:\xampp\php\PEAR') in C:\xampp\htdocs\mvc2\app\core\bootstrap.php on line 2
I can include bootstrap.php file in my index.php if i comment out all the includes in bootstrap.php file though:|.
Im using windows7 with xampp.
I have tried changing php.ini
file as suggested by others having the same problem to no avail. It's currently:
; UNIX: "/path1:/path2"
include_path=C:\xampp\php\PEAR
; Windows: "\path1;\path2"
;include_path = ".;C:\xampp\php\pear"