user881703
user881703

Reputation: 1199

Fatal error: require_once() [function.require]

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

Upvotes: 0

Views: 441

Answers (2)

deceze
deceze

Reputation: 522110

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.

Upvotes: 3

Mchl
Mchl

Reputation: 62387

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

Upvotes: 0

Related Questions