ad_opentmpfile (public)

 ad_opentmpfile varFilename [ template ]

Defined in packages/acs-tcl/tcl/utilities-procs.tcl

Wrapper for Tcl's "file tempfile ...", but respects the server's tmpdir settings, e.g. when admin want to specify a non-default temporary directory. The function is similar to "ns_opentmpfile", but provides a default template and uses always the configured tmp directory.

Parameters:
varFilename (required)
template (optional, defaults to "oacs")

Testcases:
apm_bootstrap_upgrade, ad_page_contract_filters, util_http_json_encoding, safe_tmpfile_p, zip_and_unzip
[ show source ]
Show another procedure: