[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; …
哩厚 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 …
Using php to add an all days event in Google Calendar
Following example is “Creating single-occurrence events” from Google web site. 1 2 3 4 5 6 7 8 9 10 11 12 …
Using php to generate pdf file preview – (使用php產生pdf預覽)
I’m going to use the Google Mini pdf file as this demonstration. Please download that file to the same directory of your …