- /*
- * 1、擷取路徑的檔案名稱
- * string basename(string path[,string suffix])
- * 2、擷取路徑的目錄
- * string dirname(string path)
- * 3、瞭解更多的路徑資訊
- * array pathinfo(string path)
- * 4、確定絕對路徑
- * string realpath(string path)
- * 5、確定檔案的大小
- * int filesize(string filename)
- * 6、計算磁碟的可用空間
- * float disk_free_space(string directory)
- * 7、計算磁碟的總容量
- * float disk_total_space(string directory)
- * 8、確定檔案的最後訪問時間
- * int fileatime(string filename)
- * 9、確定檔案的最後改變時間
- * int filectime(string filename)
- * 10、確定檔案的最後修改時間
- * int filemtime(string filename)
- * 11、識別檔案末尾字元
- * int feof(string resource)
- * 12、開啟和關閉檔案
- * resource fopen(string resource,string mode[,int use_include_path[,resource zountext]])
- * boolean fclose(resource filehandle)
- * 13、將檔案讀入數組
- * array file9string filename[,int user_inlucde_path[,resource context]])
- * 14、將檔案內容讀入字串變數
- * string file_get_contents(string filename[,int use_inlude_path[resource context]])
- * 15、將CSV檔案讀入數組
- * array fgetcsv(resource handle[,int length[,string delimiter[,string enclosure]]])
- * 16、讀取指定數目的字元
- * string fgets(resource handle[,int length])
- * 17、從輸入中剔除標記,清除所有HTML和PHP標記
- * string fgetss(resourcce handle,int length[,string allowable_tags])
- * 18、以一次讀取一個字元的方式讀取檔案
- * string fgetc(resource handle)
- * 19、忽略分行符號
- * string freed(resource handle,int length)
- * 20、讀取整個檔案
- * int readfile(string filename[,int use_include_path])
- * 21、根據預定義的格式讀取檔案
- * mixed fscanf(resource handle,string format[,string var1])
- * 22、將字串寫入檔案
- * int fwrite(resource handle,string string[,int length])
- * 23、移動檔案指標
- * int fseek(resource handle,int offset[,int whence])
- *
- * 1、開啟目錄控制代碼
- * resource opendir(string path)
- * 2、關閉目錄控制代碼
- * void closedir(resource directory_handle)
- * 3、解析目錄內容
- * string readdir(resource directory_handle)
- * 4、將目錄讀入數組
- * array scandir(string directory[,int sorting_order[,resource context]])
- *
- *
- * 1、刪除目錄
- * int rmdir(string dirname)
- * 2、重新命名檔案
- * boolean rename(string olename,string newname)
- * 3、觸摸檔案
- * int touch(sting filename[,int time[,int atime]])
- */
複製代碼 |