is there a function which comes between where return() and exit() sit?
i want to say "no more output, end, finish", which exit() certainly accomplishes, but exit() also kills the current process (which i think may be causing problems for me because the system i'm using uses fast cgi which uses the same process for multiple page requests i think -- something like that), which is something that may be causing intermittent status 500 errors i'm seeing in my access logs. so i need to remove all uses of exit().
of course it's possible to reorganise things and end all the page's output with return()'s, but i'm just wondering if there's a more heavy handed return(), but not as heavy handed as exit() so i don't have to reorganise things, just replace exits with this function/method i'm asking about which may or may not exist?
thanks.







The main problem is that return and exit are not functions. They are language statements. You do not have to put () after either of them, and putting () after return is highly unusual.
Bookmarks