1

I went through whatever is there and it showed me to add these two lines in my .htaccess file.

php_flag display_errors on 
php_value error_reporting "E_ALL & ~E_STRICT & ~E_NOTICE"

But then I get this error log message :

Invalid command 'php_flag', perhaps misspelled or defined by a module not included in the server configuration

There is a very popular question in stackoverflow : here but there also it has been answered considering that the user has a local server. Here I am writing the php scripts direclty on my hostgator cPanel and want to see the line number and other useful information for debugging, but still nothing useful I found.

And doing a bit more digging here tells that I need to add my own php.ini file. But even when I added the php.ini file and added those two lines nothing is shown. So how can someone debug the php code if writing the script direcly on the cPanel ?

Community
  • 1
  • 1
arqam
  • 3,582
  • 5
  • 34
  • 69

0 Answers0