起首,我们需要在php.ini配置文件中启用display_errors参数。
display_errors = on
然后,将以下代码添加到应用顺序PHP剧本中。比方,将此代码添加到index.php或其他默许加载剧本中。
<?php ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL);
这是一个示例index.php,在浏览器上显现已启用的毛病。
本篇文章到这里就已悉数完毕了,更多其他精彩内容人人能够关注ki4网的其他相干栏目教程!!!
以上就是如安在Web浏览器上显现PHP毛病的细致内容,更多请关注ki4网别的相干文章!