>>541
とりあえず以下のページは全て読んで理解しとけ。
http://www.asahi-net.or.jp/~wv7y-kmr/memo/php_security.html