PHP error failed to open stream/failed opening


These are the errors I have:

Warning: include(core/
    failed to open stream: No such file or directory in test.php on line 2

Warning: include(): Failed opening '/core/'
    for inclusion (include_path='.;C:\php\pear') in test.php on line 2

Here is my code:

$path = dirname(__FILE__);




Normally I should have at this white screen, but I got all errors immediately, anyone have any idea that this could be?

I followed this tutorial on the web: (3 parts)

I think I have as in the tutorial. Yet done the same:

enter image description here




As written in the comments, your files are not - they're That means in fact, does not exist, does.

enter image description here

You have two options:

  • Rename,
  • Change yourinclude statements to useinclude('core/'); instead.

People are also looking for solutions to the problem: php - Symfony2 Unrecognized options "simple_form" under "security.firewalls.main"


Didn't find the answer?

Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.

Ask a Question

Write quick answer

Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.

Similar questions

Find the answer in similar questions on our website.