Privacy Terms

Who We Are At Walk In The Cloud, we are committed to maintaining the trust and confidence of all visitors to our web site. In particular, we want you to know that Walk In The Cloud is not in the business of selling, renting or trading email lists with other companies and businesses for marketing purposes.  In this Privacy Policy, we’ve provided detailed information on when and why we collect personal information, how we use it, the limited conditions under which we may disclose it to others, and how we keep it secure.  We take your privacy seriously and take measures to provide all visitors and users of Walk In The Cloud with a safe and secure environment. Cookies  Walk In The Cloud may set and access Walk In The Cloud cookies on your computer.  Cookies are used to provide our system with the basic information to provide the services you are requesting.  Cookies can be cleared at any time from your internet browser settings.  Google Analytics When someone v...

[PHP] 開啟+寫入檔案


$today = date("D M j Y G:i:s");

$file = fopen($rootDir.$logDir,"a+b"); //開啟檔案
fwrite($file, "[".$today."] -> ".$str."\n");
fclose($file);



模式名稱功用
rRead開啟檔案,以供讀取,從檔案開頭開始
r+Read開啟檔案,以供讀取及寫入,從檔案開頭開始
wWrite開啟檔案,並寫入(覆寫)
w+Write開啟檔案,以供讀取及寫入(覆寫)
xCautious write開啟檔案並寫入,假如檔案已存在,不會開啟開檔,fopen()會回傳false
x+Cautious write開啟檔案,供讀取及寫入,假如檔案已存在,不會開啟開檔,fopen()會回傳false
aAppend開啟檔案,以供新增內容,接續在目前已有的內容之後開始寫入,假如檔案不存在,會建立一個新檔
a+Append開啟檔案,以供新增及讀取內容,接續在目前已有的內容之後開始寫入,假如檔案不存在,會建立一個新檔

留言