Subversion Repositories php-qbpwcf

Rev

Rev 99 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 99 Rev 226
Line 1... Line 1...
1
<?php
1
<?php
2
 
2
 
3
/*
3
/*
4
 
4
 
5
        QBPWCF, Quick Build PHP website Component base on Fedora Linux.
5
        QBPWCF, Quick Build PHP website Component base on Fedora Linux.
6
    Copyright (C) 2015~2024 Min-Jhin,Chen
6
    Copyright (C) 2014~2025 MIN ZHI, CHEN
7
 
7
 
8
    This file is part of QBPWCF.
8
    This file is part of QBPWCF.
9
 
9
 
10
    QBPWCF is free software: you can redistribute it and/or modify
10
    QBPWCF is free software: you can redistribute it and/or modify
11
    it under the terms of the GNU General Public License as published by
11
    it under the terms of the GNU General Public License as published by
Line 62... Line 62...
62
#開啟特定目錄,取得底下的檔案路徑清單.
62
#開啟特定目錄,取得底下的檔案路徑清單.
63
#回傳結果:
63
#回傳結果:
64
#$result["status"],執行是否正常,"true"代表正常,"false"代表不正常.
64
#$result["status"],執行是否正常,"true"代表正常,"false"代表不正常.
65
#$result["error"],錯誤訊息.
65
#$result["error"],錯誤訊息.
66
#$result["function"],當前執行的函數名稱.
66
#$result["function"],當前執行的函數名稱.
67
#$result["argu"],所使用的參數.	
67
#$result["argu"],所使用的參數.
68
#$result["content"],讀取到的內容陣列.
68
#$result["content"],讀取到的內容陣列.
69
#$result["content"][$i],第$i+1個結果.
69
#$result["content"][$i],第$i+1個結果.
70
#$result["content"][$i]["name"],第$i+1個名稱.
70
#$result["content"][$i]["name"],第$i+1個名稱.
71
#$result["content"][$i]["dir"],第$i+1個檔案是否為資料夾.		
71
#$result["content"][$i]["dir"],第$i+1個檔案是否為資料夾.
72
#$result["content"][$i]["info"],第$i+1個檔案的額外資訊.
72
#$result["content"][$i]["info"],第$i+1個檔案的額外資訊.
73
#$result["content"][$i]["size"],第$i+1個檔案的大小(bytes).
73
#$result["content"][$i]["size"],第$i+1個檔案的大小(bytes).
74
#必填參數:
74
#必填參數:
75
#$conf["path"],字串,要取得檔案資訊的所屬路徑.
75
#$conf["path"],字串,要取得檔案資訊的所屬路徑.
76
$conf["path"]=".";
76
$conf["path"]=".";
Line 84... Line 84...
84
unset($conf);
84
unset($conf);
85
 
85
 
86
#debug
86
#debug
87
var_dump($listInfo);
87
var_dump($listInfo);
88
 
88
 
89
?>
-
 
90
89
?>
-
 
90