Php 什么是被拒绝的许可?如何解决此警告错误?
您的PHP脚本无法访问文件Php 什么是被拒绝的许可?如何解决此警告错误?,php,mysql,Php,Mysql,您的PHP脚本无法访问文件/home/a/public\u html/debug/PHP\u error\u log.txt 尝试catit,您也应该得到一个被拒绝的权限 要解决此问题,您应该使用chmod更改文件的权限,或者使用chown更改所有权。也许您可以提供导致此错误的代码? Warning: fopen(/home/a/public_html/debug/php_error_log.txt) [function.fopen]: failed to open stream: Permis
/home/a/public\u html/debug/PHP\u error\u log.txt
尝试cat
it,您也应该得到一个被拒绝的权限
要解决此问题,您应该使用
chmod
更改文件的权限,或者使用chown
更改所有权。也许您可以提供导致此错误的代码?
Warning: fopen(/home/a/public_html/debug/php_error_log.txt) [function.fopen]: failed to open stream: Permission denied in /home/a/public_html/includes/functions/general.php on line 33
Warning: flock() expects parameter 1 to be resource, boolean given in /home/a/public_html/includes/functions/general.php on line 34
Warning: fwrite() expects parameter 1 to be resource, boolean given in /home/a/public_html/includes/functions/general.php on line 35
Warning: fwrite() expects parameter 1 to be resource, boolean given in /home/a/public_html/includes/functions/general.php on line 36
Warning: flock() expects parameter 1 to be resource, boolean given in /home/a/public_html/includes/functions/general.php on line 37
Warning: fclose() expects parameter 1 to be resource, boolean given in /home/a/public_html/includes/functions/general.php on line 38
Unable to connect to database server!