|
-
Oct 23rd, 2007, 02:02 AM
#1
Thread Starter
Lively Member
[RESOLVED]How to stop code execution in PHP?
Hi all,
like in ASP we use
response.End()
to stop code execution in between..
is there any function in php to stop code execution in between?
Last edited by rasana; Oct 23rd, 2007 at 02:46 AM.
-
Oct 23rd, 2007, 02:28 AM
#2
Re: How to stop code execution in PHP?
You can use exit() or die() to terminate the script if you must, but it's preferable to structure your code so that you don't have to.
-
Oct 23rd, 2007, 02:46 AM
#3
Thread Starter
Lively Member
Re: How to stop code execution in PHP?
Thanks penagate!!
sometimes what happnes we require to check whether data is
coming properly or not..so to just echo variables and stop further execution we require exit() or die()
i.e. to check mysql query whether given where claus contains data or not.
-
Oct 23rd, 2007, 03:28 AM
#4
Re: [RESOLVED]How to stop code execution in PHP?
Oh, of course, if it's for debugging then that's fine.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|