.htaccess 如何在我的cPanel中启用php显示错误
我浏览了其中的任何内容,它显示我在.htaccess 如何在我的cPanel中启用php显示错误,.htaccess,.htaccess,我浏览了其中的任何内容,它显示我在.htaccess文件中添加了这两行 php_flag display_errors on php_value error_reporting "E_ALL & ~E_STRICT & ~E_NOTICE" 但随后我收到以下错误日志消息: Invalid command 'php_flag', perhaps misspelled or defined by a module not included in the server config
.htaccess
文件中添加了这两行
php_flag display_errors on
php_value error_reporting "E_ALL & ~E_STRICT & ~E_NOTICE"
但随后我收到以下错误日志消息:
Invalid command 'php_flag', perhaps misspelled or defined by a module not included in the server configuration
stackoverflow中有一个非常流行的问题:但是考虑到用户有一个本地服务器,这个问题也得到了回答。在这里,我在hostgator cPanel上直接编写php脚本,希望查看行号和其他有用的调试信息,但仍然没有找到任何有用的信息
再进一步挖掘,我需要添加自己的php.ini文件。但即使我添加了php.ini文件并添加了这两行,也没有显示任何内容。那么,如果直接在cPanel上编写脚本,如何调试php代码呢