Codeigniter
When the monitors the product if use codeigniter,fuelphp that PHP framework by New Relic, execute query SET NAMES foo when every connect to mysql. This is not just problem, but execute when every connect and it was somehow eyesore, so I fi…
PHPのフレームワークでcodeigniter,fuelphpなど使っているプロジェクトをnew relicで見てみると毎回DB接続の度にSET NAMES ~~~という文字コードを設定するクエリを毎回発行していました。 別にこれだけでどうってことはないのですが、毎接続時に発行されてい…
さくらVPSの開発環境に、Codeigniterをインストールする。・ZIP パッケージを展開。 ・ドキュメントルートにindex.php移動 ・上に伴って、index.php編集 wget http://ellislab.com/codeigniter/download unzip CodeIgniter_x.x.x.zip //index.php をhtdocsの…
勉強になったので、メモ。今まで自分の中の認識だとredirectを行うとその後の処理をすっ飛ばして、 redirect先に飛ばされると思っていたのですが、実はそうではないとのこと。今、業務で使っているCodeigniterのredirectのソースは↓ //** * Header Redirect …