PHP 文章筆記 2017-09-14
Ratchet(websocket建構):
http://socketo.me/
http://php-go.com/project/58
Redis 建構教學(Within Ubuntu):
http://magiclen.org/ubuntu-redis-php/
Socket教學:
http://hoyoblog.hoyo.idv.tw/hoyo/122.html
http://inspiregate.com/programming/php/127-php-socket-teaching.html
PHP線上測試(可測試各版本)
http://sandbox.onlinephpfunctions.com/
物件導向包含錢字號處理方式
http://stackoverflow.com/questions/2093169/how-do-i-access-a-php-object-attribute-having-a-dollar-sign
PHP的try .... catch ....例外狀況
http://stackoverflow.com/questions/5373780/how-to-catch-this-error-notice-undefined-offset-0
http://php.net/manual/en/function.set-error-handler.php
PHP寫法的效能比較
https://blog.longwin.com.tw/2008/02/php5_performance_write_data_2008/
AJAX跨域偵測網域方法/防止CSRF跨域偽造請求
http://blog.zhengshuiguang.com/php/filter_referer.html
http://stackoverflow.com/questions/4566378/how-secure-is-http-origin
Composer教學
http://blog.turn.tw/?p=1864
增加PHP執行秒數
http://php.net/manual/en/function.set-time-limit.php
====================================================
php autoload
http://justericgg.logdown.com/posts/196891-php-series-autoload
PHP Benchmark
http://www.php-benchmark-script.com/download.php?file=bench-class.zip
PHP eval
http://omusico.pixnet.net/blog/post/22775399-php-eval%E7%9A%84%E7%94%A8%E6%B3%95
使用大量Multi_curl
http://php.net/manual/zh/function.curl-multi-exec.php
http://www.phpstudy.net/php/321.html
http://blog.longwin.com.tw/2009/10/php-multi-thread-curl-2009/
GMDate顯示Zulutime的用法
http://stackoverflow.com/questions/8655515/get-utc-time-in-php
PHP Try Catch Final教學
http://blog.xuite.net/ghostjackyo/WorkTest/37743727-PHP+Try+Catch
CryptoJS x PHP AES加密
https://github.com/brainfoolong/cryptojs-aes-php/tree/master/example
PHP OO基礎
http://newaurora.pixnet.net/blog/post/190301967-static%E8%AE%8A%E6%95%B8%E3%80%81public%E8%AE%8A%E6%95%B8%E3%80%81private%E8%AE%8A%E6%95%B8%E3%80%81protected%E8%AE%8A
開頭文字轉換
http://help.i2yes.com/?q=node/186
PHP echo , print , print_r , print_f 輸出的用法差異
http://codex.wiki/post/187255-673
====================================================
phpRedis教學
http://www.cnblogs.com/ikodota/archive/2012/03/05/php_redis_cn.html
https://github.com/antirez/redis/issues/1499
解決ip2long回傳負數的問題
https://blog.longwin.com.tw/2010/04/php-ip2long-negative-number-fix-2010/
PHP函数补完:stream_context_create()模拟POST/GET
http://www.nowamagic.net/librarys/veda/detail/2585
理解PHP中的stdClass类
http://www.phppan.com/2011/05/php-stdclass/
12 Best PHP Debugging Tools for Developers
http://devzum.com/2015/06/best-php-debugging-tools/
圖片轉成 Base64 編碼字串,降低連線請求 – 香腸炒魷魚
https://sofree.cc/base64-images/
PHP中 require與 include的不同
http://syunguo.blogspot.tw/2013/04/phpinclude-require.html
HTTP Session 攻擊與防護
http://devco.re/blog/2014/06/03/http-session-protection/
[PHP] $_SERVER 的詳細用法
http://blog.xuite.net/trully.hsiang/man/26168821-%5BPHP%5D+$_SERVER+%E7%9A%84%E8%A9%B3%E7%B4%B0%E7%94%A8%E6%B3%95
繼承是父子關係?才怪! 物件導向初學者應該要知道的事情(四)
http://milikao.pixnet.net/blog/post/543716-%E7%B9%BC%E6%89%BF%E6%98%AF%E7%88%B6%E5%AD%90%E9%97%9C%E4%BF%82%EF%BC%9F%E6%89%8D%E6%80%AA%EF%BC%81-%E7%89%A9%E4%BB%B6%E5%B0%8E%E5%90%91%E5%88%9D%E5%AD%B8%E8%80%85%E6%87%89
====================================================
php正規表示法
http://blog.roodo.com/linpapa/archives/8398099.html
php curl_setopt函數相關參數介紹
http://my-web-design.blogspot.tw/2008/11/php-curlsetopt.html
PHP使用RSA加解密
http://www.icyfire.me/2013/04/02/openssl-in-php.html
常用的三種PHP加解密方法
http://jerry17768java.blogspot.tw/2015/04/php.html
php抓取網頁特定div區塊及圖片
http://andy.diimii.com/2009/03/php%E6%8A%93%E5%8F%96%E7%B6%B2%E9%A0%81%E7%89%B9%E5%AE%9Adiv%E5%8D%80%E5%A1%8A%E5%8F%8A%E5%9C%96%E7%89%87/
PHP Simple HTML DOM Parser Manual
http://simplehtmldom.sourceforge.net/manual.htm#section_create
strtolower() on an array
http://stackoverflow.com/questions/4445984/strtolower-on-an-array
PHP 多個array的排序方式(適用於數字,文字X)
http://stackoverflow.com/questions/2699086/sort-multi-dimensional-array-by-value
最佳化你的PHP秘訣
http://blog.sina.com.tw/872/article.php?pbgid=872&entryid=578626
PHP動態function呼叫方式
http://stackoverflow.com/questions/4646991/php-call-a-function-dynamically
====================================================
如何使用 Closure
http://oomusou.io/php/php-closure/
讓PHP對文件檔案另存新檔
http://stackoverflow.com/questions/398237/how-to-use-the-csv-mime-type
http://jerry17768java.blogspot.tw/2014/08/php_95.html
http://blog.cmchen.net/2007/04/11/597/
在輸出csv/xls檔案時加入BOM標頭預防亂碼問題
http://um-daily.blogspot.tw/2014/12/webdevphp-export-csv.html
PHP多個array的排序方式(適用於文字型排序)
http://php.net/manual/en/function.array-multisort.php
使用simplexml_load_file解析XML檔案(注意CDATA為空問題, 由LIBXML_NOCDATA方式解決)
http://php.net/manual/en/function.simplexml-load-file.php
PHP用MySQL高效搜尋
http://php.net/manual/en/book.sphinx.php
PHP取得所有$_POST的資料
http://stackoverflow.com/questions/6334830/php-possible-to-automatically-get-all-posted-data
利用CURL取得Facebook登入
https://disp.cc/b/11-3agL
使用php的define與魔術常數
http://emn178.pixnet.net/blog/post/80655823-php教學---常數(constants)
php沒curl時用fsockopen的實作方法
https://blog.toright.com/posts/2721/php-%E5%A6%82%E4%BD%95%E9%80%8F%E9%81%8E-fsockopen-%E7%99%BC%E9%80%81-http-request-http-client%E5%AF%A6%E4%BD%9C.html