Brat Wizard wrote:
>
> Hi there-
>
> Does anyone know how I can abandon further execution of an _included
> file_ without necessarily terminating execution of the script itself?
>
> I want to do something like this:
>
> ----- toplevel script ------
> ...(commands)...
> $Response->Include("somefile.asp");
> ...(more commands)...
>
> ----- somefile.asp -----
> ...(do some stuff)...
> if ($do_I_want_to_quit_now == true) {
> don't_execute_this_included_file_anymore();
> }
Just return() from the include. In this way and
others, includes called via $Response->Include() are
like subroutines ( they are actually ). You may also return
values from includes, and pass @arguments into them.
--Josh
_________________________________________________________________
Joshua Chamas Chamas Enterprises Inc.
NodeWorks Founder Huntington Beach, CA USA
http://www.nodeworks.com 1-714-625-4051
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]