Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/fortran/2.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
.htaccess 如何在我的cPanel中启用php显示错误_.htaccess - Fatal编程技术网

.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代码呢