self signed certificate with custom CA and apache SSLRequire
建立自簽 CA 憑證 先建立一把 CA key # openssl genrsa -des3 -out rootCA.key 4096 然後產生 root CA 憑證 # openssl req -x509 -new …
[php] curl GET example
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 #!/usr/bin/php <?php $url = "http://liho.tw/"; $qry_str …
[php] plurk bot 跨年撲
先前看到 皮樂的撲. 有人傳說會加業障100. 所以來玩看看吧 材料 : Linux base機器一台(mac也許可以), at, php 還有 php plurk api, 烹煮方式 : 1. 先確認你的 linux 環境有沒有 at 和 …
HOWTO Delete Non-primary Google Calendar Event?
When you created google calendar event, you will get google event id. something like below : http://www.google.com/calendar/feeds/default/private/full/yyyyy After you created non-primary google …
php dateDiff 顯示兩個時間差多少天?多少分鐘?
差幾天 function 1 2 3 4 5 6 7 8 function dateDiff($startDate, $endDate) { $startArry = getdate(strtotime($startDate)); $endArry = getdate(strtotime($endDate)); $start_date = …
php搜尋中文字
1 2 3 4 5 6 7 <? mb_internal_encoding(’UTF-8’); $output = "123中文測試…"; $pos = mb_strpos($output, "中文"); $output = substr($output, $pos); echo $output; …
php用curl抓網頁轉Big5到UTF-8範例
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 <? $webpage = $_GET["w"]; $ch = …
哩厚 plurk 在此為您服務
早上7am 這個 lihotw 會為您報台北市天氣. 歡迎加入lihotw.
HOWTO Insert Non-primary Google Calendar Event?
If you do not specify Google Calendar URI, the event will be added to the primary calendar. So, you need to figure …