Correct way to exit script in phpBB?

Need some coding help with a MOD or tweak you are working on? - Ask here.
Forum rules
Ask for support specifically regarding coding help with phpBB3.
Not for generic usability questions or support.

Correct way to exit script in phpBB?

Postby ageadm » 10 Sep 2012, 12:47

I need to exit, a script if something goes wrong, and trigger_error(); wont be helping me here. What would be the correct way to only EXIT the script without any output, like a normal php exit;?
User avatar
ageadm    
Crewman
Crewman
 
Posts: 2
Joined: 11 Jan 2012, 07:52
Favorite Team: Juventus F.C.
Gender: Male
phpBB Knowledge: 5


Re: Correct way to exit script in phpBB?

Postby topdown » 10 Sep 2012, 13:03

Use
Code: Select all
exit; 
Last edited by Handyman on 10 Sep 2012, 20:23, edited 1 time in total.
Reason: Put code in code tags
Do not PM me for Support unless I give permission in a post......PM's only help one, posts help everyone !
User avatar
topdown    
STG Styles Leader
STG Styles Leader
 
Posts: 3026
Joined: 01 Oct 2007, 22:56
Location: Handyman's harddrive
Favorite Team: STG Teams
Gender: Male
phpBB Knowledge: 9


Return to phpBB3 Coding Assistance

Who is online

Users browsing this forum: No registered users and 7 guests