檔案系統函式庫

clearstatcache

(PHP3 , PHP4)

clearstatcache ---  清除檔案狀態快取

語法 : void clearstatcache(void);

說明 : 

使用stat()lstat()是相當耗資源的,因此,會將任何狀態(status)函式最後呼叫的結果儲存起來,以便下次使用相同檔名呼叫時可以使用。如果你希望迫使一個新的狀態核對(check),例如 : 如果檔案是存在(being)核對許多時間,而且可能改變或是消失,使用此函式從記憶體清除最後呼叫的結果

受影響的函式包括了 : stat( )lstat( )file_exists( )is_writeable( )is_readable( ) is_executable( )is_file( )is_dir( )is_link( )filectime( )fileatime( )filemtime( ) fileinode( )filegroup( )fileowner( )filesize( )filetype( )fileperms( )


上一頁 首頁 下一頁