入力 フィルタリング

セキュリティ

対象

 状態:-  閲覧数:1,680  投稿日:2015-11-17  更新日:2015-11-18  
入力値
・GET,POST,Cookie

主な関数
・ctype_alnum($string)
・ctype_digit($string)
・preg_match($pattern,$string)
・mb_convert_kana($string,$option)
・mb_strlen($string)
・mb_strwidth


htmlspecialchars / htmlentities / addslashes / mysql_real_escape_string / mysqli_real_escape_string

サニタイズ

コメント投稿(ログインが必要)



週間人気ページランキング / 10-20 → 10-26
順位 ページタイトル抜粋 アクセス数
1 PHPで定数を定義する方法は2種類ある / 配列定数の定義 6
2 Cookie | クッキー 5
2 ブラウザを閉じたらセッションデータはどうなるの? | セッション 5
2 Parse error: syntax error, unexpected 'public' (T_PUBLIC) | Parse error(エラーメッセージ) 5
2 http_build_queryとは? / 構文 /パラメータ 5
3 PHP用語 4
3 Fatal error: Access level to ▲::$△ must be protected (as in class ●) or weaker | Fatal error(エラーメッセージ) 4
4 ブラウザを閉じたらセッションデータはどうなるの? | セッション 3
4 コード例 … 「例外処理」はネストすることができる 3
5 Generators | Generator クラス(定義済みのインターフェイスとクラス) 2
5 ( ! ) Warning: file_put_contents(/a/b.jpg): failed to open stream: No such file or directory in | エラーメッセージ 2
5 Fatal error: Uncaught Error: Call to a member function modify() on string | Fatal error(エラーメッセージ) 2
5 Fatal error: Uncaught RuntimeException: SplFileObject::__construct(): failed to open stream: Permission denied in | Fatal error(エラーメッセージ) 2
5 インポートするデータを受信できませんでした。ファイル名が送信されていないか、ファイルサイズが PHP の設定で許可された最大値を超えています。FAQ 1.16 をご覧ください | エラーメッセージ 2
5 セッション管理が必要な理由は、HTTPプロトコルには状態を保持する機能がないため | セッション 2
5 言語構造 カテゴリー 2
5 Fatal error: Call to undefined method MDB2_Error::execute() in ○○ on line △△ | Fatal error(エラーメッセージ) 2
5 ( ! ) Fatal error: Uncaught PDOException: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'カラム名' cannot be null | Fatal error(エラーメッセージ) 2
5 Mailer Error: SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting | エラーメッセージ 2
5 Fatal error: require_once(): Failed opening required 'PEAR.php' | Fatal error(エラーメッセージ) 2
2025/10/27 1:01 更新