Print date time with ms in PHP, which is faster?
PHP 裡頭印出 Y-m-d h:i:s.u 的日期時間(有 ms)的方式很多,過年前無聊試了一下,還真的有些不一樣
PHP 裡頭印出 Y-m-d h:i:s.u 的日期時間(有 ms)的方式很多,過年前無聊試了一下,還真的有些不一樣
情況是要把原本寫入 local mongodb 的 usage log dump 出 csv 檔案(並且從mongodb內刪除),並且把較舊的 csv 檔案移去 GCP storage。
ServerName www.site_name.com RedirectPermanent / http://www.the_other_site.com/ 起因就是因為XX的中國的機器用 domain name 連 http 要另外登記備案… WTF
可以參考 https://github.com/InteractionDesignFoundation/add-event-to-calendar-docs/blob/main/services/google.md 範例: https://calendar.google.com/calendar/render?action=TEMPLATE&text=2021/10/01-10/03+2021台北XX展&dates=20211001T093000/20211003T173000&details=https://URL/FOR/MORE/DETAIL&logo=&output=xml&ctz=Asia/Taipei&location=台北南港展覽館1館
因為有個 security 大洞,所以需要升級…
呃,這算是幹壞事,侵犯到智慧財產權不甘這邊的事情喔
如果有某些檔案會經常更動(比方說一些 batch process 會將結果寫成 .html 檔),又希望每次瀏覽時能夠拿到最新的,而不是瀏覽器內的 cache,那可以在 apache2.4 內這樣設定
其實 phalcon 4 已經release很久了,我一直拖著沒有把手邊的系統從 3.x 做升級,但總有該面對的一天
遇到的情況是要在 ubuntu 機器上 mount 非 public access 的 gcp storage bucket,然後要給 php web api 做讀寫。