Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/mysql/70.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 什么是被拒绝的许可?如何解决此警告错误?_Php_Mysql - Fatal编程技术网

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

您的PHP脚本无法访问文件
/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!