开发者

PHP errors are not displaying on the page you are developing. You only have SFTP Access to change files. How do you display the errors?

开发者 https://www.devze.com 2022-12-13 22:06 出处:网络
PHP errors are not displaying on the page you are developing. Y开发者_Python百科ou only have SFTP Access to change files. How do you display the errors?Try enabling error reporting on top of the scrip

PHP errors are not displaying on the page you are developing. Y开发者_Python百科ou only have SFTP Access to change files. How do you display the errors?


Try enabling error reporting on top of the script:

ini_set ('display_errors', true);
error_reporting (E_ALL);


Per-file change:

<?php ini_set('display_errors', 1); error_reporting(E_ALL);

Global change in your .htaccess file:

php_value display_errors on
php_value error_reporting 8191

Global change in your php.ini file:

error_reporting = E_ALL
display_errors = On


You can set error_reporting to display all errors:

error_reporting(E_ALL);


from http://php.net/manual/en/errorfunc.configuration.php

ini_set('error_reporting','On');

should do the trick


You can set the error reporting level on a page-by-page basis by using the error_reporting() function.

E.g. error_reporting(E_ALL);

Will tell the interpreter to display any errors and warnings it encounters.

0

精彩评论

暂无评论...
验证码 换一张
取 消