Forum Moderators: coopster

Message Too Old, No Replies

Is there a PHP equivalent of response.end?

         

MrSpeed

3:12 am on Jan 20, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Is there a way to stop php processing and flush the buffer sort of like ASP's response.end?

I'm trying to do some debugging and want to isoloate chunks of code at a time.

Thanks,

Xuefer

3:26 am on Jan 20, 2004 (gmt 0)

10+ Year Member



exit();

jatar_k

7:42 am on Jan 20, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



die();

dcrombie

10:18 am on Jan 20, 2004 (gmt 0)



flush();

MrSpeed

2:09 pm on Jan 20, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Thanks,
Exit() seems to do what I want. I didn't consider exit() before, I though it was just to get out of a function.

I had looked into flush() but I thought buffering is off by default unless I call ob_start().