# diff /etc/php.ini.5.2.original /etc/php.ini
128c128
< short_open_tag = On
---
> short_open_tag = Off <? を開始タグに使用しない。 <?php を使用
350c350
< error_reporting = E_ALL
---
> error_reporting = E_ALL | E_STRICT
369c369
< display_errors = Off
---
> display_errors = On エラーは表示する
516c516
< ;include_path = ".:/php/includes"
---
> include_path = ".:/usr/share/pear"
651c651
< ;date.timezone =
---
> date.timezone = Asia/Tokyo タイムゾーンを設定
959c959
< ;session.cookie_secure =
---
> session.cookie_secure = 1 cookie はhttpsのときのみ使用
1152c1152
< ;mbstring.language = Japanese
---
> mbstring.language = Japanese
1157c1157
< ;mbstring.internal_encoding = EUC-JP
---
> mbstring.internal_encoding = UTF-8
1160c1160
< ;mbstring.http_input = auto
---
> mbstring.http_input = auto
1171c1171
< ;mbstring.encoding_translation = Off
---
> mbstring.encoding_translation = On
1175c1175
< ;mbstring.detect_order = auto
---
> mbstring.detect_order = auto
1179c1179
< ;mbstring.substitute_character = none;
---
> mbstring.substitute_character = 12307 代替文字列に“〓”を使用
1189c1189
< ;mbstring.func_overload = 0
---
> mbstring.func_overload = 1 mail()→mb_sendmail()にオーバーロード
$a = empty($s);
↓
$a = (strlen($s) > 0);
/* empty の代替関数 */
function is_emp($v) {
if ("$v" == "0") {
return false;
}
return empty($v);
}
$a = empty($s);
↓
$a = is_emp($s);
Apache Server at www.xxxxx.xx.jp Port 80
Apache Server at www.xxxxx.xx.jp Port 80
Author:どこの馬の骨
FC2ブログへようこそ!
