Development Wiki

Difference between revisions of "Talk:Function.trigger error"

From phpBB Development Wiki

m (Alternative to trigger_error)
m (moved Talk:Trigger error to Talk:Function.trigger error: wiki guidelines)
(No difference)

Latest revision as of 07:01, 11 March 2010

Alternative to trigger_error

Is there any alternative to trigger_error that doesn't call the header and footer, instead just halts the script and outputs something? Alighieri

  • Only if there is a PHP fatal error would you do that, there is no reason to halt the script (completly) - BarryCarlyon 19:55, 10 September 2008 (UTC)

- If you want to just halt the script and output something, you would use E_USER_ERROR, but you can also specify your own error handler, or define('HEADER_INC'); which will avoid calling page_header() within trigger error. If you seek additional assistance, please post a topic in the MOD Writers Discussion Forum. - Highway of Life (talk) 20:18, 10 September 2008 (UTC)