How to solve this error?
The code is very simple:
<?php
ini_set('display_errors', true);
Prompt error message:
Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0
I have found many similar error messages on the Internet, but they all have a Fatal Error
after warning
. I only have this line warning
level error message.
This configuration should be configured in php.ini;
Because the file does not have write permission, just enable the file write permission in the directory.
Configuration error prompt
Error resolution
Permission error is expressed in English. Please check whether a file you are operating has permissions that are readable, writable, readable, or executable