This domain may be for sale!
![pluf.org](https://cdn-ak-scissors.b.st-hatena.com/image/square/8f24c3d581ba857501c206ec13fdabfe86ba588b/height=288;version=1;width=512/https%3A%2F%2Freactdom.com%2Fwp-content%2Fuploads%2F2017%2F07%2FD3-1.png)
PHPのフレームワークCakePHPにふれてみたのですが、なんとなく乗りきれず。CodeIgniterにと思ったのですが、 気分でkohanaにふれてみます。 2009/12/02現在、kohanaにはv2.3.4とv3.xが存在しています。v2.xとv3.xでは、命名規則やルーティングの定義場所など 多くの変更が行われています。ここでは、kohana v3.0.2.1のインストール手順を記録します。 Kohana: The Swift PHP Frameworkからkohana v3.0.2.1をダウンロードします。 ダウンロードしたファイルを展開し、Webサーバー上に配置します。ここでは、public_html/ko3/(例:https://www.bnote.net/ko3/)以下に配置しました。 public_html | |-- /ko3/ | |--/application/
The Fuel PHP Framework is a fast, simple and flexible PHP 5.4+ framework, born from the best ideas of other frameworks, with a fresh start! Version 1.8.2 is a bugfix release, but includes quite a few improvements as well. The most important one: a fix for security issue SEC-CORE-009!. Have a look at the changelog to see what has been fixed or improved. Discover If you are new to the PHP framework
This two-part tutorial will get you up and running with the Fuel PHP framework. We'll start with the basics, and then move onto some more advanced topics in part two! Let's get started. Introduction Fuel is a new PHP Framework built specifically for PHP 5.3, which uses the tried and tested MVC architecture for logical code separation and combines the best ideas of some existing frameworks with imp
PHP 5.4 beta 2が出ているところですが、ソースコード(html.c)を見ていて、XSS対策で使用される htmlspecialchars()の文字コード指定がPHP 5.3とは異なる動作をすることに気が付きました。 内部文字コード(mbstring.internal_encoding)が使用される以下のようなシチュエーションです。 <?php // test.php echo htmlspecialchars("foo",ENT_QUOTES,""); mbstring.internal_encoding="SJIS-win"と指定することにします。(推奨はできませんが、)外字対応(絵文字対応)でCP932を使用したい場合を想定しています。 PHP 5.3で実行 php53/sapi/cli/php -d mbstring.internal_encoding="SJIS-win
プログラミング (iOS, JavaScript, Jenkins, Sikuli) とMacやiPhoneなどの話題が中心のブログ MercurialがPythonで書かれていることもあり、単純なMercurial拡張を自分で書くのは意外と簡単です。この記事では簡単なMercurial拡張を作成してhgコマンドから呼び出す方法を簡単に説明します。 なお、Mercurialの内部APIを用いた場合には、そのコードはMercurialのライセンス (GPL) に従うことになるので注意してください。 スクリプトとしての起動 Mercurial拡張は単にMercurial APIを利用しているPythonのモジュールです。その出発点は次のようなスクリプトになります。 #!/usr/bin/python # -*- coding: utf-8 -*- from mercurial import u
第3引数を指定していない場合の影響前述のように、htmlspecialchars関数の第3引数を指定していない場合、PHP5.3までは、文字エンコーディングがISO-8859-1が指定されたとみなされます。この場合、入力内容にかかわらず不正な文字エンコーディングと判定されることはありません。したがって、文字エンコーディングのチェックが働かない代わりに、エラーになることもありませんでした。 これに対して、PHP5.4の仕様により文字エンコーディングがUTF-8とみなされた場合に、Shift_JISやEUC-JPの2バイト文字が入力されると、高い確率で「UTF-8として不正」というエラーになり、htmlspecialchars関数の出力は空になります。つまり、プログラムが正常に動作しません。 htmlspecialchars関数の第3引数を指定しておらず、内部文字エンコーディングがShift_
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く