.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 n…
(.*?)/i”, $html, $matches) ) { //(3)
return $matches[1];
} else {
return false;
}
}
?>
参照元:http://creazy.net/2008/05/php_get_page_title_sample.html
graffiti on the web
この投稿へのコメント
コメントはまだありません。