I'm trying to read the content of config.json
file which is available in the same folder of the file that read it, this file is called settings.php
, I actually have this line of code in settings.php
:
$jsonData = file('config.json');
the problem's that I get:
Warning: file(config.json): failed to open stream: No such file or directory
this is weird because as you can see from the image:
I'm trying this app on localhost with mamp