phpBB

Development Wiki

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

From phpBB Development Wiki

m (answer to support question)
m (correct formatting)
Line 1: Line 1:
===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]]
+
===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]]
  
* Only if there is a PHP fatal error would you do that, there is no reason to halt the script (completly) [[User:BarryCarlyon|<span style="color:#003F03;">BarryCarlyon</span>]] 19:55, 10 September 2008 (UTC)
+
* Only if there is a PHP fatal error would you do that, there is no reason to halt the script (completly) - [[User:BarryCarlyon|<span style="color:#003F03;">BarryCarlyon</span>]] 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 [http://www.phpbb.com/community/viewforum.php?f=71 MOD Writers Discussion] Forum. - [[User:Highway_of_Life|'''<span style="color:#0074ae;">Highway</span> <span style="color:green;">of</span> <span style="color:blue;">Life</span>''']] [[User talk:Highway_of_Life|<span style="color:red;">(talk)</span>]] 20:18, 10 September 2008 (UTC)
+
<br>
 +
: - 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 [http://www.phpbb.com/community/viewforum.php?f=71 MOD Writers Discussion] Forum. - [[User:Highway_of_Life|'''<span style="color:#0074ae;">Highway</span> <span style="color:green;">of</span> <span style="color:blue;">Life</span>''']] [[User talk:Highway_of_Life|<span style="color:red;">(talk)</span>]] 20:18, 10 September 2008 (UTC)

Revision as of 20:19, 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)