(misc) o2_pathstring o2_path(string $local_file, integer $mode) In HTML disposes requested file for download and returns the url leading to it.
In GTK context method is bypassed and it returns input parameter $local_file untouched.
Second parameter $mode is effective in HTML context only. It can take one of three values:
= 1 File is forced to download by headers;
= 2 File is always disposed by Transitional File System (TRN)
= 0 (or any other value) file is delivered as a Stream Resource or TRN depending on application .INI parameter "trn_deliver".
|