开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜