登校したら,ソージーからレスポンスがあった.
どうも,ソージーがレンタルしてる場所の設定では,
safe_mode=on,safe_mode_gid=onではないらしい.
でも動いてるらしい・・・
ソージーとエリッチの両サーバのphpinfoをもらって,自サーバと比較する.
そして,正しいかどうかは分からないが,以下の結論に達した.
×safe_mode = on
×safe_mode_gid = on
○magic_quotes_gpc = on
なお,magic_quotes_gpcの初期値は"1"・・・つまり on だ.
何故,offになってたのか・・・わからない・・・わからなさすぎる・・・
と思って調べたが,どうもこの設定は深い.色々ある.
どちらが良いとは一概に言えなさそうである.
.htaccessで変更可能なパラメータなので,臨機応変にお願いしたい.
自サーバの設定は, on にすることとする.
(参考にしたサイト)
まとめます.
つまり,POGOシステムは,PHPを以下のように設定することで動作する.
POGO以外も動かす前提の汎用設定
php.ini ------------------
register_globals = off
display_errors = on
safe_mode = off
safe_mode_gid = off
magic_quotes_gpc = on
[mbstring]
mbstring.encoding_translation = on
mbstring.language = Japanese
mbstring.internal_encoding = EUC-JP
mbstring.http_input = auto
mbstring.http_output = pass
mbstring.detect_order = auto
mbstring.substitute_character = none
.htaccess ----------------
php_flag register_globals OFF
php_flag magic_quotes_gpc ON
php_value default_charset none
php_value mbstring.language Japanese
php_flag mbstring.encoding_translation ON
php_value mbstring.detect_order auto
php_value mbstring.internal_encoding EUC-JP
php_value mbstring.http_input auto
php_value mbstring.http_output SJIS
php_flag output_buffering ON
php_value output_handler mb_output_handler
php_value mbstring.substitute_character none
POGO以外は動かさない前提の専用設定
php.ini ------------------
register_globals = off
default_charset = none
display_errors = on
safe_mode = off
safe_mode_gid = off
magic_quotes_gpc = on
output_buffering = on
output_handler = mb_output_handler
[mbstring]
mbstring.encoding_translation = on
mbstring.language = Japanese
mbstring.internal_encoding = EUC-JP
mbstring.http_input = auto
mbstring.http_output = SJIS
mbstring.detect_order = auto
mbstring.substitute_character = none