I am working on localhost xammp as I installed xamp and wordpress successfully. Now when I run the php code and provide the path in the Chrome browser, an error message appears that you do not have the permission to access...
Forbidden You don't have permission to access this resource.
Apache/2.4.46 (Win64) OpenSSL/1.1.1g PHP/7.2.34 Server at localhost Port 80
I faced the same problem and this is what worked for me