php kill included script, but not including script?
I have a php scr开发者_JAVA百科ipt that runs some checks, if the checks fail it includes another file so that it can do its checks, if something in the included file fails then i need to exit out of the included script so that the including script can continue doing its stuff.
is there any way to kill the currently executing script without killing the including script?
see http://docs.php.net/return:
return
[...]
If called from the global scope, then execution of the current script file is ended. If the current script file was include()ed or require()ed, then control is passed back to the calling file.
精彩评论