Difference between revisions of "Ns adp dir"

From AOLserver Wiki
Jump to navigation Jump to search
(imported from WiKit id 861)
 
 
Line 13: Line 13:
 
'''DESCRIPTION'''
 
'''DESCRIPTION'''
  
: This command returns the current working directory of the current ADP page.~~~If this command is not called from inside an ADP page, "/" is returned instead.
+
: This command returns the current working directory of the current ADP page.
 +
: If this command is not called from inside an ADP page, in AOLserver versions prior to 4.0 it threw an error, in 4.0 it returns "/" and in 4.5+, it returns the value of ns_info pageroot.
  
'''EXAMPLES'''
 
 
    ns_adp_dir
 
 
----
 
----
  
 
[[Category Documentation]] - [[Category Core Tcl API]]
 
[[Category Documentation]] - [[Category Core Tcl API]]

Latest revision as of 00:48, 14 June 2010

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


NAME

ns_adp_dir - Returns the current working directory for an ADP page

SYNOPSIS

ns_adp_dir

DESCRIPTION

This command returns the current working directory of the current ADP page.
If this command is not called from inside an ADP page, in AOLserver versions prior to 4.0 it threw an error, in 4.0 it returns "/" and in 4.5+, it returns the value of ns_info pageroot.

Category Documentation - Category Core Tcl API