iis 7.5 - Reporting PHP 500 Errors -


i have rather old procedural php site running on iis7.5 server - it's on windows box because runs alongside classic asp site.

the classic asp site has customised 500 error page uses server.getlasterror output details of error prompted page. these details emailed me.

in php, i've found error_get_last(), should similar, i'm not sure how set up. have experience of using error_get_last() on iis7.5 server?

can output error_get_last() below?

$error = error_get_last(); if ($error !== null) {     $errno   = $error["type"];     $errfile = $error["file"];     $errline = $error["line"];     $errstr  = $error["message"];     //send email... } 

thanks.

no. can't. 500 error php script means script killed , barfed on floor. there's no error left, because script dead. other script fires handler 500 not able internal error caused 500 - it's independent script own error queue.

at best have error handler script parse through server error log, since it's separate script, couldn't reliably tell of errors in log 1 want at.


Comments

Popular posts from this blog

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

How to show in django cms breadcrumbs full path? -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -