Robert Bagley wrote:
>
$Response->Include() works too, but doesn't help since it runs the
script, and returns the output.
Josh can correct me if I'm wrong, but I've always understood that <!--#include -
-> is just a wrapper around $Response->Include(). So, they should do the same
thing...
This is correct if DynamicIncludes is set to 1. The default setting
of 0 will inline a SSI file include, so that its code is in the same
scope as the rest of the script.
Also, the file I want to include should have access to the variables.
Try to call the script like $Response->Include($file, @vars),
and then set the vars to what you need them using @_ in the include.
Treat the include as a perl subroutine in this way.
I've never tried, but I'm not sure that the variable scope extends into the
included files. I've always passed the variables as arguments to the $Response-
Only global variables will share the same scope from script to
$Response->Include file. my scoped variables will not be seen
in the include, but can be passed in as arguments.
Regards,
Josh
________________________________________________________________
Josh Chamas, Founder phone:925-552-0128
Chamas Enterprises Inc. http://www.chamas.com
NodeWorks Link Checking http://www.nodeworks.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]