phpBB

Development Wiki

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

From phpBB Development Wiki

m (correct formatting)
m (Alternative to trigger_error)
Line 1: Line 1:
===Alternative to trigger_error===
+
==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? [[User:Alighieri|Alighieri]]
 
Is there any alternative to trigger_error that doesn't call the header and footer, instead just halts the script and outputs something? [[User:Alighieri|Alighieri]]
  

Revision as of 20:22, 10 September 2008

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)