0

When i try to call require_once function that gave to me following error message enter image description here

I'm sure "/www/mvc/controllers/router.php" is correct path for my router.php file

PeeHaa
  • 71,436
  • 58
  • 190
  • 262
user881703
  • 1,111
  • 3
  • 19
  • 38

2 Answers2

3

Paths starting with / are absolute to the system root. Meaning /var/www/foo/bar would be something like C:\var\www\foo\bar on Windows, which, looking at your debug message, is quite obviously not where your files are. Leave off the starting / to make the path relative to the current script, or fix your path.

deceze
  • 510,633
  • 85
  • 743
  • 889
0

I'm pretty sure you don't have /www/mvc/controllers/router.php on Windows. And you're on windows, as indicated by include path C:\php\pear and script path C:\wamp\www\mvc\index.php

Mchl
  • 61,444
  • 9
  • 118
  • 120