ナビゲーション
FrontPage
FreeBSD
Linux
Citrix XenServer
VMware ESXi
Unixコマンド
MySQL
PostgreSQL
Windows
CMS/CRM
クラウド
用語
PHPスクリプト
Bashシェルスクリプト
Rubyスクリプト
開発日記
検索
ツールボックス
新しいページの作成
バックアップの表示
外部のリンク元
最近更新したページ
全ページ
ヘルプ
凍結
アップロード
ページ名の変更
最新の40件
2016-08-17
Linux/NagiosQL
Linux/CentOSチューニング
2016-02-23
Linux/ソフトウェアRAID復旧手順
2016-02-18
FreeBSD/DHCP
FreeBSD/squid
2016-02-15
Unixコマンド/file
2016-02-05
FreeBSD/DynaBook
FreeBSD/Linux compatibility
2016-01-21
PHPスクリプト/PEAR DBインストールできない
PHPスクリプト/PEAR DB
2016-01-20
PHP/フレームワーク/Zend Framework
PHP/フレームワーク
FreeBSD/Postfix+amavisd+clamav
2016-01-15
FreeBSD/sl
2015-12-04
Unixコマンド/dig
Unixコマンド/nslookup
Unixコマンド/traceroute
Linux/rsync
FreeBSD/rsync
Unixコマンド/vipw
2015-11-25
Linux/Postfix+MySQL+Postfix AdminによるバーチャルSMTPサーバの構築
Linux/Postfix + postgrey
2015-11-24
Linux/Postfix + amavisd + clamav
2015-05-25
Unixコマンド/ifconfig
2015-05-23
Unixコマンド/netstat
Unixコマンド/route
Unixコマンド/lsof
Unixコマンド/disown
Unixコマンド/time
Unixコマンド/crontab
2015-05-22
Unixコマンド/nohup
Unixコマンド/fgとbg
Unixコマンド/nice
Unixコマンド/kill
Unixコマンド/jobs
Unixコマンド/restor
Unixコマンド/dump
Unixコマンド/uncompress
Unixコマンド/compress
Unixコマンド/zcat
total:
2045
today:
1
yesterday:
0
now:
1
本文
ノート
?
編集
差分
一覧
PHPスクリプト/PHP 5.3.0でエラー の編集
*PHP 5.3.0でエラー [#hcc0742b] #contents http://www.php.net/manual/ja/migration53.deprecated.php PHPのバージョンを5.3.0にしたらDeprecatedエラーがいっぱいでた。 Deprecated: Function ereg() is deprecated in /hoge/hoge Deprecated: Function ereg_replace() is deprecated in /hoge/hoge 実行時の注意。これを有効にすると、 将来のバージョンで動作しなくなるコードについての警告を受け取ることができるらしい。 E_DEPRECATED (integer) eregやらereg_replaceなんかはこの先使えなくなるらしい。 mb_eregとかpregなんかに変更する必要が出てくるみたい。 split のかわりに preg_split とか explode とかにしないといけない。 (^^) とりあえずの対策としてエラーメッセージを消す。 error_reporting(E_ERROR & ~E_NOTICE & ~E_PARSE); **PHP Notice: Undefined index: [#ie3db695] これを消したい場合、@でエラーを出さいないようにできる。 -応急処置 if($_POST['AAA']){ ↓ if(@$_POST['AAA']{ **date関数でエラー [#we4a312f] date関数を使うとこんなエラーが・・・ (^^; Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Asia/Tokyo' for 'JST/9.0/no DST' instead in /hoge/hoge.php on line どうもPHP 5.1.0 からdate.timezoneを設定していないと、エラーが出ちゃうらしい ***対処 [#t7133fe8] # vi php.ini date.timezone = Asia/Tokyo phpファイルに書く場合 date_default_timezone_set('Asia/Tokyo');
タイムスタンプを変更しない
*PHP 5.3.0でエラー [#hcc0742b] #contents http://www.php.net/manual/ja/migration53.deprecated.php PHPのバージョンを5.3.0にしたらDeprecatedエラーがいっぱいでた。 Deprecated: Function ereg() is deprecated in /hoge/hoge Deprecated: Function ereg_replace() is deprecated in /hoge/hoge 実行時の注意。これを有効にすると、 将来のバージョンで動作しなくなるコードについての警告を受け取ることができるらしい。 E_DEPRECATED (integer) eregやらereg_replaceなんかはこの先使えなくなるらしい。 mb_eregとかpregなんかに変更する必要が出てくるみたい。 split のかわりに preg_split とか explode とかにしないといけない。 (^^) とりあえずの対策としてエラーメッセージを消す。 error_reporting(E_ERROR & ~E_NOTICE & ~E_PARSE); **PHP Notice: Undefined index: [#ie3db695] これを消したい場合、@でエラーを出さいないようにできる。 -応急処置 if($_POST['AAA']){ ↓ if(@$_POST['AAA']{ **date関数でエラー [#we4a312f] date関数を使うとこんなエラーが・・・ (^^; Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Asia/Tokyo' for 'JST/9.0/no DST' instead in /hoge/hoge.php on line どうもPHP 5.1.0 からdate.timezoneを設定していないと、エラーが出ちゃうらしい ***対処 [#t7133fe8] # vi php.ini date.timezone = Asia/Tokyo phpファイルに書く場合 date_default_timezone_set('Asia/Tokyo');
テキスト整形のルールを表示する
ログインまたはアカウント作成