2010-02-03から1日間の記事一覧
■ Form * 以下の関連記事を参照のこと Form ~基本編~ https://blogs.yahoo.co.jp/dk521123/29018521.html Form ~プロパティ編~ https://blogs.yahoo.co.jp/dk521123/20513730.html Form ~表示編~ https://blogs.yahoo.co.jp/dk521123/29005600.html Fo…
【1】 readonly サンプル public readonly int x = 0; 【2】 const サンプル public const int x = 0; ■ 定数あれこれ ローカル変数にreadonlyを使えるか? * 基本使えない * const は使える 参考文献 http://d.hatena.ne.jp/griefworker/20100816/csharp_…
イメージ関数を使うには? PHP.iniの設定 修正前 ;extension=php_gd2.dll 修正後 extension=php_gd2.dll ";"を消し、Apacheを再起動させる イメージ関数 GetImageSize() http://php.net/manual/ja/function.getimagesize.php ImageCreate()/ImageCreateTrueC…
include/require include ファイルがなかった場合、以降の処理を中止 require ファイルがなかった場合でも、以降の処理を続行 「中止/続行」以外の違いはない(らしい) 例 test.php ・・・ $a = 10; print "TEST<br>\n"; include "common.inc"; require "common…
PHPで、円マークが意図しないのに混入する場合 フォームから入力した文字列に、時々、意図しないのに円マーク(\)が混入する場合がある 日本語のSJISの場合に関係がある模様 対応策 if (get_magic_quotes_gpc()) { $contents = stripslashes($contents); } 補…
Basic認証 サンプル