Ns adp eval

From AOLserver Wiki
Revision as of 05:08, 14 June 2010 by Akhassin (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Man page: http://aolserver.com/docs/tcl/ns_adp_eval.html


NAME

ns_adp_eval - Evaluate an ADP block

SYNOPSIS

ns_adp_eval page ?args ...?

DESCRIPTION

This function evaluates the ADP specified by page (which is somewhat of a misnomer) and returns the output as the result. If any arguments are specified, they will be passed to the ADP.

NOTES

In AOLserver 3.x, this command took an optional -parser parser arg before the page arg, which was removed in AOLserver 4.x as there is only one parser (fancy) in 4.x. This will cause scripts which use [ns_adp_eval -parser fancy {... ADP ...}] to simply return the string "-parser" as it's interpreting that argument as the page argument, evaluating it and then returning it. When migrating from AOLserver 3.x to 4.x, all uses of ns_adp_eval must be checked, and if -parser is specified, it must be removed.
In 4.0 and later, this command is equivalent to ns_adp_parse -string, only it doesn't support the optional -cwd and -savedresult switches of that command.


EXAMPLES

SEE ALSO

ns_adp_abort, ns_adp_append, ns_adp_argc, ns_adp_argv, ns_adp_bind_args, ns_adp_break, ns_adp_debug, ns_adp_debuginit, ns_adp_dir, ns_adp_dump, ns_adp_exception, ns_adp_include, ns_adp_mime, ns_adp_mimetype, ns_adp_parse, ns_adp_puts, ns_adp_registeradp, ns_adp_registerproc, ns_adp_registertag, ns_adp_return, ns_adp_safeeval, ns_adp_stats, ns_adp_stream, ns_adp_tell, ns_adp_trunc

Category Documentation - Category Core Tcl API