NaviServer - programmable web server
4.99  5.0

[ Main Table Of Contents | Table Of Contents | Keyword Index ]

ns_adp_argv(n) 4.99.30 naviserver "NaviServer Built-in Commands"

Name

ns_adp_argv - Return the number of arguments to the current ADP

Table Of Contents

Synopsis

Description

This command returns a list of arguments to the current ADP, including the name of the ADP itself as the first element. If index is specified, only that element from the list is returned.

COMMANDS

ns_adp_argv ?index?

EXAMPLES

 # In a.adp:
 <% ns_adp_include b.adp example a b c %>
 # In b.adp:
 <%
   ns_adp_argv      ;# => b.adp example a b c
   ns_adp_argv 0    ;# => b.adp
   ns_adp_argv 4    ;# => c
 %>

See Also

ns_adp_argc, ns_adp_bind_args, ns_adp_include, ns_adp_parse, nsd

Keywords

ADP, server built-in