# stripcslashes() ---- C言語と同様にバックスラッシュでクォートされた文字列を元に戻す
# htmlentities() ---- 適用可能な文字を全てHTML エンティティに変換する
# nl2br() ---- 改行文字の前にHTMLの改行タグを挿入する
# strip_tags() ---- 文字列からHTMLタグ、および PHPタグを取り除く
…
.htaccessに以下を記述してルートに設置
# Various rewrite rules.
<IfModule mod_rewrite.c>
RewriteEngine on
# Modify the RewriteBase if you are using Drupal in a subdirectory and
# the rewrite rules are not working properly.
RewriteBase /
# Rewrite URLs of the form 'index.php?q=x'.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
</IfModule>
参考:http://eru-net.jp/web/?itemid=58
graffiti on the web
この投稿へのコメント
コメントはまだありません。