I'm testing the Slim Framework on a machine with Windows 10 , already in the first instructions I received the error:
Fatal error: Unknown: Failed opening required 'public\public/index.php' (include_path='.;C:\php\pear') in Unknown on line 0
I looked at other related threads and saw that it might be something with permissions but I've already given master permission in both the PHP directory and the project directory.
Here are my settings:
-
Folder location:
C:/php
-
Project location:
D:\git\slim-saa
-
PHP version:
PHP 7.1.12 (cli) (built: Nov 23 2017 04:21:28) (ZTS MSVC14 (Visual C ++ 2015) x6 4) Copyright (c) 1997-2017 The PHP Group Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies
Project on GitHub .
I'm following exactly the Slim Getting Started and raise the built-in server with the command:
php -S localhost:8080 -t public public/index.php
Run in root (slim-saa folder)
Can anyone give me a light on how to circumvent this situation?