檔案系統函式庫

file_exists

(PHP3 , PHP4)

file_exists ---  檢查檔案是否存在

語法 : int file_exists (string filename)

說明 : 

如果指定的檔案filename存在則傳回true,否則傳回false。

file_exists( )將不運作在遠端的檔案,要被檢查的檔案必須是可經由伺服器的檔案系可使用的檔案。

此函式的結果會存在快取緩衝區中,詳細資料請參考clearstatcache( )


上一頁 首頁 下一頁