Subversion Repositories qbpwcf-lib(archive)

Rev

Rev 910 | Rev 915 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

<?php

#使用命名空間qbpwcf
namespace qbpwcf{

        #匯入外部套件
        include("../../allInOne.php");
        
        #/*
        
        #涵式說明:
        #透過轉址的方式來下載檔案.
        #回傳結果:
        #$result["status"],執行是否正常,"true"代表正常,"false"代表不正常.
        #$result["error"],錯誤訊息
        #$result["function"],當前執行的函數名稱 
        #必填的參數:
        #$conf["filePosition"],字串,爲要下載的檔案位置
        $conf["filePosition"]="Untitled new empty file.tar.xz";
        #$conf["fileType"],字串,檔案類型
        $conf["fileType"]="application/x-xz-compressed-tar";
        #$conf["fileName"],字串,儲存時的檔案名稱.
        $conf["fileName"]="test.tar.xz";
        #可省略參數:
        #$conf["fileTypeName"],字串,副檔名,ex:「.tar.gz」.
        #$conf["fileTypeName"]="";
        #參考資料來源:
        #header=>http://php.net/manual/en/function.header.php
        #備註:
        #請搭配data函數使用,並在沒有任何html輸出的頁面使用
        header::downloadFile($conf);
        unset($conf);
        
        #*/

        }#namespace qbpwcf end

?>