Problem to perform require of a file

0

This is my error and code respectively. I can do includes in other files, only in config.php not!

Does anyone have a solution?

NOTE: It is good to note that I have already tried to remove the '.;' which is ahead of the 'C: \'. And I have no way to C: \ php let alone C: \ php \ pear.

Thank you!

    
asked by anonymous 27.01.2017 / 16:20

1 answer

0

After a while I spent here, I had already solved it, but I will put the answer to those who have not found a solution yet.

define('BASE_URL', 'http://localhost/imob/');
//este funciona
require_once('../helpers/functions.php');
//este não funciona
require_once(str_replace('http://', '', BASE_URL).'restrito/helpers/functions.php');
  • config.php is located in: localhost / imob / restricted / config / config.php
  • functions.php is located in: localhost / imob / restricted / helpers / functions.php
15.03.2017 / 17:38