PHP5のfgetcsvとか

新しいサーバーのテスト環境が出来たのでさっそく試すがまったく動かず。エラーログをみつつあちこち修正。デバッグ用メッセージを出力してみると読み込んだcsvファイルの各カラムの1文字目が文字化けしている。今までSJISで書かれたファイルをPHPで読み込んでから変換していたがEUCに変換済みのファイルを読み込むように変更。やはり本番となると色々問題が出てくるなぁ.

This entry was posted in PHP. Bookmark the permalink.

コメントをどうぞ

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>