I’m using Vagrant provider for server, now look at my directories :
in my system:
https://i.stack.imgur.com/XCXIm.png
vagrant-site
-Project(/var/www)
–public (/var/www/html)
—index.php
now I created a sample .php file in Project folder then when I run vagrant and logged in vagrant ssh when I cd to /var/www ,that .php file doesn’t exist there and I could not work with
include __DIR__ . '/../count.html.php';
this line of code not working because this file doesn’t exist in /var/www but exist in my system