Reporting Errors While Working in IIS

I am trying to install my PHP installation in IIS to display errors, but I have no luck at all. I tried

error_reporting(E_ALL);

in the script, and nothing is displayed, just a blank screen.

I tried changing the PHP.ini file and installing

error_reporting = E_ALL
display_errors = On

Also tried

error_reporting = E_ALL
display_errors = stdout

but nothing appears on the screen at all when my scripts cause errors.

Any tips?

+5
source share
4 answers

, PHP ; IIS php.ini C:\WINDOWS, PHP ISAPI CGI. phpinfo(); , php.ini. , , , IIS ( ).

+4

, , , PHP-:

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

, , , , .

+4

, IIS . :

  • inetmgr ( → → inetmgr → )
  • ( )
  • " "
  • " ".
  • .
  • IIS.

, .

+2
source

All Articles