php.iniの変更が有効にならない - PHPプロ!Q&A掲示板
インストールしたPHPはphp-4.4.4.tar.bz2です。
iniファイル中のmbstringセクションの内容を修正して
コマンドラインからphp -infoを実行しても変更が有効になりません。
iniファイルの置き場所が悪いのかとも考えましたが、
phpinfoの結果を見る限りは認識してくれてるようです。
どなたかアドバイスを頂けると助かります。m(__)m
$ cp php.ini-recommended /usr/local/lib/php.ini
[mbstring] ※修正した内容
mbstring.language = Japanese
mbstring.internal_encoding = EUC-JP
mbstring.http_input = auto
mbstring.http_output = SJIS
mbstring.encoding_translation = On
mbstring.detect_order = auto
mbstring.substitute_character = none;
$ php -info ※関係ありそうな所だけ抜粋
phpinfo()
PHP Version => 4.4.4
Configure Command => './configure' '--with-apxs=/usr/sbin/apxs' '--with-oci8-instant-client=/usr/lib/oracle/10.1.0.4/client/lib' '--enable-zend-multibyte' '--enable-mbstring' '--enable-mbregex' '--without-mysql' '--enable-sigchild'
Server API => Command Line Interface
Virtual Directory Support => disabled
Configuration File (php.ini) Path => /usr/local/lib
mbstring
Multibyte Support => enabled
Japanese support => enabled
Simplified chinese support => enabled
Traditional chinese support => enabled
Korean support => enabled
Russian support => enabled
Multibyte (japanese) regex support => enabled
mbstring extension makes use of "streamable kanji code filter and converter", which is distributed under the GNU Lesser General Public License version 2.1.
Directive => Local Value => Master Value
mbstring.detect_order => no value => no value
mbstring.encoding_translation => Off => Off
mbstring.func_overload => 0 => 0
mbstring.http_input => pass => pass
mbstring.http_output => pass => pass
mbstring.internal_encoding => ISO-8859-1 => no value
mbstring.language => neutral => neutral
mbstring.script_encoding => no value => no value
mbstring.substitute_character => no value => no value
この質問への意見の募集は締め切られ、ポイントは既に配分されました。
意見を投稿することはできますが、ポイントを受け取ることはできません。




ページのトップへ


一つの目安として、ECサイトの購入情報など絶対に消えてはいけないものはDBに、カートなどの一時的に使用する情報や、ユーザに任意のタイミングで消去されても構わないものはセッションにと使い分けるといいでしょう。